mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-17 03:18:39 +00:00
libkvazaar: Fix setting framerate
The divisor and dividend in the equation had been swapped, making the result the inverse of the actual framerate. Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
This commit is contained in:
parent
5fefa7b512
commit
0e34868387
@ -73,7 +73,7 @@ static av_cold int libkvazaar_init(AVCodecContext *avctx)
|
||||
cfg->width = avctx->width;
|
||||
cfg->height = avctx->height;
|
||||
cfg->framerate =
|
||||
(double)(avctx->time_base.num * avctx->ticks_per_frame) / avctx->time_base.den;
|
||||
avctx->time_base.den / (double)(avctx->time_base.num * avctx->ticks_per_frame);
|
||||
cfg->threads = avctx->thread_count;
|
||||
cfg->target_bitrate = avctx->bit_rate;
|
||||
cfg->vui.sar_width = avctx->sample_aspect_ratio.num;
|
||||
|
Loading…
x
Reference in New Issue
Block a user