# HG changeset patch # User diego # Date 1170857450 0 # Node ID a02a0d06e99bceaaf904cbcae41bec41a8c68c03 # Parent 2a51d7c4820bdf89f9dbf3cee4b7ba13ff6de7d9 Add a comment about swapped numerator and denominator. diff -r 2a51d7c4820b -r a02a0d06e99b libtheoraenc.c --- a/libtheoraenc.c Wed Feb 07 12:38:47 2007 +0000 +++ b/libtheoraenc.c Wed Feb 07 14:10:50 2007 +0000 @@ -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) {