[FFmpeg-cvslog] avformat/adxdec: set bit_rate, fixes duration calculation

Paul B Mahol git at videolan.org
Sun May 15 19:08:12 CEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun May 15 19:02:12 2016 +0200| [5afecff1effe5470bc816edf8036ccdf0073a448] | committer: Paul B Mahol

avformat/adxdec: set bit_rate, fixes duration calculation

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5afecff1effe5470bc816edf8036ccdf0073a448
---

 libavformat/adxdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c
index 4f83348..cf44531 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);
 



More information about the ffmpeg-cvslog mailing list