From 0e348683875d7915d699488fd6c29fb9ffd48453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arttu=20Yl=C3=A4-Outinen?= Date: Mon, 28 Sep 2015 11:28:46 +0300 Subject: [PATCH] libkvazaar: Fix setting framerate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- libavcodec/libkvazaar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c index 08798440c3..0cf890f229 100644 --- a/libavcodec/libkvazaar.c +++ b/libavcodec/libkvazaar.c @@ -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;