On Mon, Dec 12, 2011 at 10:51:33PM +0530, Aneesh Dogra wrote:
> ---
> libavcodec/vc1dec.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
> index 0340dc2..21285c0 100644
> --- a/libavcodec/vc1dec.c
> +++ b/libavcodec/vc1dec.c
> @@ -5522,8 +5522,11 @@ static int vc1_decode_frame(AVCodecContext *avctx,
> void *data,
> }
> } else if (v->interlace && ((buf[0] & 0xC0) == 0xC0)) { /* WVC1
> interlaced stores both fields divided by marker */
> const uint8_t *divider;
> -
> + n_slices1 = n_slices;
> + slices = av_realloc(slices, sizeof(*slices) * (n_slices+1));
> + slices[n_slices].mby_start = s->mb_height >> 1;
> divider = find_next_marker(buf, buf + buf_size);
> +
stray line
> if ((divider == (buf + buf_size)) || AV_RB32(divider) !=
> VC1_CODE_FIELD) {
> av_log(avctx, AV_LOG_ERROR, "Error in WVC1 interlaced
> frame\n");
> goto err;
> --
Otherwise probably OK.
Mashiat, do you have anything to say?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel