From 5afecff1effe5470bc816edf8036ccdf0073a448 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 15 May 2016 19:02:12 +0200 Subject: [PATCH] avformat/adxdec: set bit_rate, fixes duration calculation Signed-off-by: Paul B Mahol --- libavformat/adxdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c index 4f83348afd..cf4453195e 100644 --- a/libavformat/adxdec.c +++ b/libavformat/adxdec.c @@ -111,6 +111,7 @@ static int adx_read_header(AVFormatContext *s) par->codec_type = AVMEDIA_TYPE_AUDIO; par->codec_id = s->iformat->raw_codec_id; + par->bit_rate = par->sample_rate * par->channels * BLOCK_SIZE * 8LL / BLOCK_SAMPLES; avpriv_set_pts_info(st, 64, BLOCK_SAMPLES, par->sample_rate);