On Sat, Jan 18, 2014 at 01:31:52PM +0100, Tim Walker wrote:
> From: Michael Niedermayer <[email protected]>
> 
> ---
> Appears to be a functional change in this merge commit:
> 
> http://git.videolan.org/?p=ffmpeg.git;a=commit;h=41f552
> 
> Fixes some interlaced VC-1 samples, e.g.:
> 
> https://dl.dropboxusercontent.com/u/37259775/ivc1/ivc1-001.mkv
> https://dl.dropboxusercontent.com/u/37259775/ivc1/ivc1-004.mkv
> 
> Can people who know VC-1 better please shed some light on this?
> 
>  libavcodec/vc1.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
> index acefce6..eb03e30 100644
> --- a/libavcodec/vc1.c
> +++ b/libavcodec/vc1.c
> @@ -842,6 +842,7 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, 
> GetBitContext* gb)
>      int mbmodetab, imvtab, icbptab, twomvbptab, fourmvbptab; /* useful only 
> for debugging */
>      int field_mode, fcm;
>  
> +    v->numref          = 0;
>      v->p_frame_skipped = 0;
>      if (v->second_field) {
>          v->s.pict_type = (v->fptype & 1) ? AV_PICTURE_TYPE_P : 
> AV_PICTURE_TYPE_I;
> -- 

Looks harmless though I don't see how it fixes anything.
avconv -i ivc1-001.mkv -f md5 check.md5
doesn't change with this patch applied
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to