Browse Source

Add a comment about swapped numerator and denominator.

Originally committed as revision 7871 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 18 years ago
parent
commit
013591c5f2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/libtheoraenc.c

+ 2
- 0
libavcodec/libtheoraenc.c View File

@@ -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) {


Loading…
Cancel
Save