[avbin commit] r47 - trunk/src

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 27, 2008, 6:07:07 AM11/27/08
to avbin-...@googlegroups.com
Author: Alex.Holkner
Date: Thu Nov 27 03:06:53 2008
New Revision: 47

Modified:
trunk/src/avbin.c

Log:
Workaround frame rate bug when frame rate > 1000

Modified: trunk/src/avbin.c
==============================================================================
--- trunk/src/avbin.c (original)
+++ trunk/src/avbin.c Thu Nov 27 03:06:53 2008
@@ -212,6 +212,13 @@
/* 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;
+
+ /* Work around bug in FFmpeg: if frame rate over 1000,
divide
+ * by 1000.
+ */
+ if (info_8->video.frame_rate_num /
+ info_8->video.frame_rate_den > 1000)
+ info_8->video.frame_rate_den *= 1000;
}
break;
case CODEC_TYPE_AUDIO:

Reply all
Reply to author
Forward
0 new messages