[avbin commit] r49 - trunk/src

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 14, 2008, 12:23:32 AM12/14/08
to avbin-...@googlegroups.com
Author: Alex.Holkner
Date: Sat Dec 13 21:22:25 2008
New Revision: 49

Modified:
trunk/src/avbin.c

Log:
Set frame_rate from r_frame_rate instead of time_base.

Modified: trunk/src/avbin.c
==============================================================================
--- trunk/src/avbin.c (original)
+++ trunk/src/avbin.c Sat Dec 13 21:22:25 2008
@@ -209,9 +209,10 @@
info->video.sample_aspect_den =
context->sample_aspect_ratio.den;
if (info_8)
{
- /* Take reciprocal of time_base (period) to get frame_rate
*/
- info_8->video.frame_rate_num = context->time_base.den;
- info_8->video.frame_rate_den = context->time_base.num;
+ AVRational frame_rate = \
+ file->context->streams[stream_index]->r_frame_rate;
+ info_8->video.frame_rate_num = frame_rate.den;
+ info_8->video.frame_rate_den = frame_rate.num;

/* Work around bug in FFmpeg: if frame rate over 1000,
divide
* by 1000.

Reply all
Reply to author
Forward
0 new messages