X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flibopenh264enc.c;h=1d1342ac6c93dfabb6bdf8134565cd01b270ca0b;hb=db1ab7e5af6aeafb04db153828a266d1d998a78e;hp=2b7bad3a08b5bf70d5abc742d272f115d5f6987b;hpb=ff68b83968cba999a15b7c981c1bbcc2d608cad2;p=ffmpeg diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index 2b7bad3a08b..1d1342ac6c9 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, ¶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;