aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-07-10 04:19:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-07-10 04:19:07 +0200
commit7b404c94f38e8270ed704dd3d89a35f8f16f25b1 (patch)
treea6f6776ace5b6396e1281fe7b3955a9f10de8b33
parent033dc39c561ff12c625bbe7f646d65f94e514e4c (diff)
downloadffmpeg-7b404c94f38e8270ed704dd3d89a35f8f16f25b1.tar.gz
avcodec/libopenh264enc: Do not truncate frame rate
Suggested-by: Gregory J Wolfe <gregory.wolfe@kodakalaris.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/libopenh264enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
index 2b7bad3a08..1d1342ac6c 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;