[FFmpeg-cvslog] libkvazaar: Fix setting framerate
Arttu Ylä-Outinen
git at videolan.org
Wed Oct 7 16:24:08 CEST 2015
ffmpeg | branch: master | Arttu Ylä-Outinen <arttu.yla-outinen at tut.fi> | Mon Sep 28 11:28:46 2015 +0300| [0e348683875d7915d699488fd6c29fb9ffd48453] | committer: 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: Arttu Ylä-Outinen <arttu.yla-outinen at tut.fi>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e348683875d7915d699488fd6c29fb9ffd48453
---
libavcodec/libkvazaar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c
index 0879844..0cf890f 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;
More information about the ffmpeg-cvslog
mailing list