[Ffmpeg-devel] [PATCH] mov fps fix
Michael Niedermayer
michaelni
Mon Jan 9 15:32:10 CET 2006
Hi
On Mon, Jan 09, 2006 at 03:06:47PM +0100, Baptiste COUDURIER wrote:
> Mov demuxer does not set correct fps. Atm it always says stream comes
> from film source.
>
> According to mplayer and libquicktime demuxer implementation, fps are
> computed from 'stts' atom.
>
> This patch computes fps the same way.
>
> --
> Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
> SMARTJOG S.A. http://www.smartjog.com
> Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
> Phone: +33 1 49966312
> Index: libavformat/mov.c
> ===================================================================
> RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mov.c,v
> retrieving revision 1.98
> diff -u -p -r1.98 mov.c
> --- libavformat/mov.c 30 Dec 2005 20:34:08 -0000 1.98
> +++ libavformat/mov.c 9 Jan 2006 14:03:11 -0000
> @@ -1448,6 +1448,10 @@ av_log(NULL, AV_LOG_DEBUG, "track[%i].st
> total_sample_count+=sample_count;
> }
>
> + if (entries > 0) {
> + st->time_base.num = c->streams[c->fc->nb_streams - 1]->stts_data[0].duration;
> + st->time_base.den = c->streams[c->fc->nb_streams - 1]->time_scale;
> + }
rejected this is wrong for variable fps files
[...]
--
Michael
More information about the ffmpeg-devel
mailing list