[Ffmpeg-devel] Re: [PATCH] mov fps fix

Baptiste COUDURIER baptiste.coudurier
Mon Jan 9 15:56:44 CET 2006


Hi

Michael Niedermayer wrote:
>> [...]
>>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
> 
> [...]
> 

What about setting it if entries == 1 ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312





More information about the ffmpeg-devel mailing list