[Ffmpeg-cvslog] r7871 - trunk/libavcodec/libtheoraenc.c
diego
subversion
Wed Feb 7 15:10:50 CET 2007
Author: diego
Date: Wed Feb 7 15:10:50 2007
New Revision: 7871
Modified:
trunk/libavcodec/libtheoraenc.c
Log:
Add a comment about swapped numerator and denominator.
Modified: trunk/libavcodec/libtheoraenc.c
==============================================================================
--- trunk/libavcodec/libtheoraenc.c (original)
+++ trunk/libavcodec/libtheoraenc.c Wed Feb 7 15:10:50 2007
@@ -92,6 +92,8 @@
t_info.frame_height = avc_context->height;
t_info.offset_x = 0;
t_info.offset_y = 0;
+ /* Swap numerator and denominator as time_base in AVCodecContext gives the
+ * time period between frames, but theora_info needs the framerate. */
t_info.fps_numerator = avc_context->time_base.den;
t_info.fps_denominator = avc_context->time_base.num;
if (avc_context->sample_aspect_ratio.num != 0) {
More information about the ffmpeg-cvslog
mailing list