Browse Source

brstm: fix number of samples for the last block

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n1.1
James Almer Paul B Mahol 13 years ago
parent
commit
7959c26fb0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/brstm.c

+ 1
- 1
libavformat/brstm.c View File

@@ -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;


Loading…
Cancel
Save