ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Sun May  1 16:21:56 
2016 +0200| [25482d5c42cc85b83e4ea998d339b661936ae3f4] | committer: Paul B Mahol

avformat/wsddec: set bit_rate, fixes duration estimation

Signed-off-by: Paul B Mahol <one...@gmail.com>

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

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

diff --git a/libavformat/wsddec.c b/libavformat/wsddec.c
index e84d093..9ca0576 100644
--- a/libavformat/wsddec.c
+++ b/libavformat/wsddec.c
@@ -128,6 +128,7 @@ static int wsd_read_header(AVFormatContext *s)
     st->codecpar->sample_rate = avio_rb32(pb) / 8;
     avio_skip(pb, 4);
     st->codecpar->channels    = avio_r8(pb) & 0xF;
+    st->codecpar->bit_rate    = st->codecpar->channels * 
st->codecpar->sample_rate * 8LL;
     if (!st->codecpar->channels)
         return AVERROR_INVALIDDATA;
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to