diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-05-01 16:16:39 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-05-01 16:16:39 +0200 |
commit | 423a6a0993814e44fa8f34af23f5e9242cd0658a (patch) | |
tree | d0c838b44a17744b5ae63309d1cf7a98ca873dde | |
parent | 88a849c714c17ad80d411f68e6575dfa1c8e8358 (diff) | |
download | ffmpeg-423a6a0993814e44fa8f34af23f5e9242cd0658a.tar.gz |
avformat/dsfdec: set bit_rate, fixes duration estimation
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavformat/dsfdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dsfdec.c b/libavformat/dsfdec.c index a8c78e4a4d..f16b397df2 100644 --- a/libavformat/dsfdec.c +++ b/libavformat/dsfdec.c @@ -125,6 +125,7 @@ static int dsf_read_header(AVFormatContext *s) return AVERROR_INVALIDDATA; } st->codecpar->block_align *= st->codecpar->channels; + st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate * 8LL; avio_skip(pb, 4); /* data chunk */ |