X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fadxdec.c;h=cf4453195ecf628080fb097c4b39d4f33097f33b;hb=2ab823d4a6ef1f96961a82fcf5100a5a46917d0e;hp=4f83348afd0b1a317234024f92bc720469c9b83c;hpb=7dca13428541f358101c92d61d146203d4b7acf8;p=ffmpeg diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c index 4f83348afd0..cf4453195ec 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);