diff options
author | Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi> | 2015-09-28 11:28:46 +0300 |
---|---|---|
committer | Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi> | 2015-10-07 17:09:10 +0300 |
commit | 0e348683875d7915d699488fd6c29fb9ffd48453 (patch) | |
tree | b80ea7aee472e9af66e898537aef3cd500a626a6 /libavcodec | |
parent | 5fefa7b512cc8e2141d595a6a7ed77de13da4e18 (diff) | |
download | ffmpeg-0e348683875d7915d699488fd6c29fb9ffd48453.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libkvazaar.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |