From: Thilo Borgmann Date: Sat, 6 Mar 2010 17:13:31 +0000 (+0000) Subject: Fix last frame block size correction. X-Git-Tag: v0.6~892 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bbe8fa1f83bc56375989920838c4a931d82ff5e2;p=coroid%2Flibav_saccubus.git Fix last frame block size correction. Originally committed as revision 22238 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 91b31d11a..c39fced3a 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -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;