[FFmpeg-cvslog] avcodec/libopenh264enc: Do not truncate frame rate

Michael Niedermayer git at videolan.org
Fri Jul 10 04:38:49 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jul 10 04:19:07 2015 +0200| [7b404c94f38e8270ed704dd3d89a35f8f16f25b1] | committer: Michael Niedermayer

avcodec/libopenh264enc: Do not truncate frame rate

Suggested-by: Gregory J Wolfe <gregory.wolfe at kodakalaris.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b404c94f38e8270ed704dd3d89a35f8f16f25b1
---

 libavcodec/libopenh264enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
index 2b7bad3..1d1342a 100644
--- a/libavcodec/libopenh264enc.c
+++ b/libavcodec/libopenh264enc.c
@@ -92,7 +92,7 @@ static av_cold int svc_encode_init(AVCodecContext *avctx)
 
     (*s->encoder)->GetDefaultParams(s->encoder, &param);
 
-    param.fMaxFrameRate              = avctx->time_base.den / avctx->time_base.num;
+    param.fMaxFrameRate              = 1/av_q2d(avctx->time_base);
     param.iPicWidth                  = avctx->width;
     param.iPicHeight                 = avctx->height;
     param.iTargetBitrate             = avctx->bit_rate;



More information about the ffmpeg-cvslog mailing list