avcodec/libopenh264enc: Do not truncate frame rate
Suggested-by: Gregory J Wolfe <gregory.wolfe@kodakalaris.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
033dc39c56
commit
7b404c94f3
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ static av_cold int svc_encode_init(AVCodecContext *avctx)
|
|||
|
||||
(*s->encoder)->GetDefaultParams(s->encoder, ¶m);
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue