]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/adxdec.c
Merge commit 'd68fb1475856cf93199e2bc4eee3063902c35df7'
[ffmpeg] / libavformat / adxdec.c
index 4f83348afd0b1a317234024f92bc720469c9b83c..cf4453195ecf628080fb097c4b39d4f33097f33b 100644 (file)
@@ -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);