aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-02-07 14:10:50 +0000
committerDiego Biurrun <diego@biurrun.de>2007-02-07 14:10:50 +0000
commit013591c5f2a8b1425dc3508754fd384db50e4509 (patch)
tree26b33c4f4075f78037ba0beeccad066685f2f180
parent9b1a3ea0de496f3858648a09d4efa48430da20e3 (diff)
downloadffmpeg-013591c5f2a8b1425dc3508754fd384db50e4509.tar.gz
Add a comment about swapped numerator and denominator.
Originally committed as revision 7871 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/libtheoraenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c
index 3fc70cf384..7f531dbee5 100644
--- a/libavcodec/libtheoraenc.c
+++ b/libavcodec/libtheoraenc.c
@@ -92,6 +92,8 @@ static int encode_init(AVCodecContext* avc_context)
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) {