Commit 423a6a09 authored by Paul B Mahol's avatar Paul B Mahol

avformat/dsfdec: set bit_rate, fixes duration estimation

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 88a849c7
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment