Mercurial > libavcodec.hg
changeset 4496:a02a0d06e99b libavcodec
Add a comment about swapped numerator and denominator.
author | diego |
---|---|
date | Wed, 07 Feb 2007 14:10:50 +0000 |
parents | 2a51d7c4820b |
children | 3975e734e07e |
files | libtheoraenc.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {