From 8337395ba917c422bbb0efdfb427efffd605673c Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 10 Aug 2016 18:30:48 -0700 Subject: [PATCH] Fix bitrate reporting for FFmpeg. --- src/meta/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/ffmpeg.c b/src/meta/ffmpeg.c index ec509ac3..96ae82be 100644 --- a/src/meta/ffmpeg.c +++ b/src/meta/ffmpeg.c @@ -277,7 +277,7 @@ ffmpeg_codec_data * init_ffmpeg_faux_riff(STREAMFILE *streamFile, int64_t fmt_of tb.num = 1; tb.den = data->codecCtx->sample_rate; data->totalFrames = av_rescale_q(data->formatCtx->streams[streamIndex]->duration, data->formatCtx->streams[streamIndex]->time_base, tb); - data->bitrate = (int)((data->codecCtx->bit_rate) / 1000); + data->bitrate = (int)(data->codecCtx->bit_rate); data->framesRead = 0; data->endOfStream = 0; data->endOfAudio = 0;