Commit 7b404c94 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libopenh264enc: Do not truncate frame rate

Suggested-by: 's avatarGregory J Wolfe <gregory.wolfe@kodakalaris.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 033dc39c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment