aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-05-01 16:21:56 +0200
committerPaul B Mahol <onemda@gmail.com>2016-05-01 16:25:57 +0200
commit25482d5c42cc85b83e4ea998d339b661936ae3f4 (patch)
tree857ab99789f1f06935364f514a863ae41bc1326a
parent423a6a0993814e44fa8f34af23f5e9242cd0658a (diff)
downloadffmpeg-25482d5c42cc85b83e4ea998d339b661936ae3f4.tar.gz
avformat/wsddec: set bit_rate, fixes duration estimation
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavformat/wsddec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/wsddec.c b/libavformat/wsddec.c
index e84d093c65..9ca0576815 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;