Commit 5afecff1 authored by Paul B Mahol's avatar Paul B Mahol

avformat/adxdec: set bit_rate, fixes duration calculation

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 7fe81bc4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment