"frame_rate" and "frame_rate_base" -- where the frame rate was
frame_rate/frame_rate_base -- have been replaced with

AV_Rational time_base

where "for fixed-fps content, timebase should be 1/framerate".

So I think you need to replace this line in ffmpeg2raw.c:
fps = ( double ) venc->frame_rate / venc->frame_rate_base;
With this:
fps = 1.0 / av_q2d(venc->time_base);

The av_q2d routine and the AV_Rational struct are in the 
<libavutil/rational.h> header, though I believe that's already included by 
the headers you're already using.

Actually , to avoid the loss of accuracy from the floating point 
reciprocation, you probably want to do this instead:
fps = (double) venc->time_base.den / (double) venc->time_base.num;

Hope this helps.

-- 
Nathanael Nerode  <[EMAIL PROTECTED]>

Make sure your vote will count.
http://www.verifiedvoting.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to