diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-05-15 19:02:12 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-05-15 19:05:19 +0200 |
commit | 5afecff1effe5470bc816edf8036ccdf0073a448 (patch) | |
tree | 25a6f312a66d066a5d4f04ca51a7f4acde23f728 | |
parent | 7fe81bc4f8ba684626fa08f7bef46da3e8abe373 (diff) | |
download | ffmpeg-5afecff1effe5470bc816edf8036ccdf0073a448.tar.gz |
avformat/adxdec: set bit_rate, fixes duration calculation
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavformat/adxdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |