Commit 7959c26f authored by James Almer's avatar James Almer Committed by Paul B Mahol

brstm: fix number of samples for the last block

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent d0bdcbcb
......@@ -245,7 +245,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
b->current_block++;
if (b->current_block == b->block_count) {
size = b->last_block_used_bytes;
samples = size / 16 * 14;
samples = size / (8 * codec->channels) * 14;
} else if (b->current_block < b->block_count) {
size = b->block_size;
samples = b->samples_per_block;
......
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