Commit 2c606ba5 authored by thilo.borgmann's avatar thilo.borgmann

Fix last frame block size correction.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22238 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cda11e5d
......@@ -519,7 +519,7 @@ static void get_block_sizes(ALSDecContext *ctx, unsigned int *div_blocks,
unsigned int remaining = ctx->cur_frame_length;
for (b = 0; b < ctx->num_blocks; b++) {
if (remaining < div_blocks[b]) {
if (remaining <= div_blocks[b]) {
div_blocks[b] = remaining;
ctx->num_blocks = b + 1;
break;
......
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