Commit 0e348683 authored by Arttu Ylä-Outinen's avatar Arttu Ylä-Outinen

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: 's avatarArttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
parent 5fefa7b5
......@@ -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;
......
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