avformat/dsfdec: set bit_rate, fixes duration estimation
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
88a849c714
commit
423a6a0993
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user