[Ffmpeg-cvslog] r8175 - trunk/libavformat/swf.c

Baptiste Coudurier baptiste.coudurier
Mon Mar 5 23:24:24 CET 2007


Hi

Michael Niedermayer wrote:
> Hi
> 
> On Thu, Mar 01, 2007 at 06:05:11PM +0100, bcoudurier wrote:
>> Author: bcoudurier
>> Date: Thu Mar  1 18:05:11 2007
>> New Revision: 8175
>>
>> Modified:
>>    trunk/libavformat/swf.c
>>
>> Log:
>> factorize
>>
>> Modified: trunk/libavformat/swf.c
>> ==============================================================================
>> --- trunk/libavformat/swf.c	(original)
>> +++ trunk/libavformat/swf.c	Thu Mar  1 18:05:11 2007
> [...]
>>              url_fskip(pb, len);
>>          } else {
>>              url_fskip(pb, len);
>>          }
>>      }
>> +    if (vst) {
>> +        av_set_pts_info(vst, 24, 1, 1000); /* 24 bit pts in ms */
>> +        if (swf->ms_per_frame) {
>> +            vst->codec->time_base.den = 1000. / swf->ms_per_frame;
>> +            vst->codec->time_base.num = 1;
>> +        }
>> +    }
> 
> 
> this doesnt look correct at all
> 
> vst->codec->time_base= (AVRational){swf->ms_per_frame, 1000};
> 
> might be closer to being correct
> 

Wouldn't that being even closer ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swf_fps.patch
Type: text/x-diff
Size: 2417 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20070305/f07e9608/attachment.patch>



More information about the ffmpeg-cvslog mailing list