[FFmpeg-devel] [PATCH] set avg frame rate in mkv demuxer

Aurelien Jacobs aurel
Sun May 16 18:34:15 CEST 2010


On Fri, May 14, 2010 at 03:24:44PM -0700, Baptiste Coudurier wrote:
> Hi
> 
> $subject.
> 

> Index: libavformat/matroskadec.c
> ===================================================================
> --- libavformat/matroskadec.c	(revision 23138)
> +++ libavformat/matroskadec.c	(working copy)
> @@ -1390,6 +1390,8 @@
>                        255);
>              if (st->codec->codec_id != CODEC_ID_H264)
>              st->need_parsing = AVSTREAM_PARSE_HEADERS;
> +            if (track->default_duration > 0)

default_duration is unsigned, so no need to test for >0. The following
should be enough:
  if (track->default_duration)

Except this, patch OK.

Aurel



More information about the ffmpeg-devel mailing list