[Ffmpeg-devel] Re: changes to asf demuxer
Jon Elwood
jelwood
Mon Mar 19 21:09:22 CET 2007
>On Mon, 2007-03-19 at 19:04, Uoti Urpala wrote:
>
>On Mon, 2007-03-19 at 13:37 -0400, Jon Elwood wrote:
>> av_reduce(&st->r_frame_rate.num, &st->r_frame_rate.den,
>> get_std_framerate(j), 12*1001, INT_MAX);
>
>> So, r_frame_rate.num and r_frame_rate.den must be set somewhere in here.
>> The problem is I looked in av_reduce and I have no idea what this
function
>> does. What is the purpose of this function (I found it in fational.c,
but I
>> didn't understand its purpose)? What's interesting is I have at least 20
>
>That call reduces the fraction get_std_framerate(j) / (12*1001) to
>lowest terms, replacing it with the closest possible approximation with
>the terms below INT_MAX if the original int64_t values were bigger
>(seems unlikely in this case though), and places the resulting numerator
>and denominator in st->r_frame_rate.num and st->r_frame_rate.den.
>
>So basically it writes the fps value get_std_framerate(j)/(12*1001) to
>the st->r_frame_rate fields.
Thank you for responding and trying to help. I feel bad because I just
upgraded to the latest SVN and someone fixed this problem over the weekend
(I didn't upgrade to the latest SVN over the weekend as I was tracing
through the code).
Thank you to whoever fixed the issue.
More information about the ffmpeg-devel
mailing list