Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Borgmann <thilo.borgmann@googlemail.com>2010-03-06 20:13:31 +0300
committerThilo Borgmann <thilo.borgmann@googlemail.com>2010-03-06 20:13:31 +0300
commitbbe8fa1f83bc56375989920838c4a931d82ff5e2 (patch)
tree719d7f66da56e87cd1532490273c92e9db0f38e1 /libavcodec/alsdec.c
parent0bf5a0cf4633bd4213ea585749ebc394700af507 (diff)
Fix last frame block size correction.
Originally committed as revision 22238 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 91b31d11a4..c39fced3a1 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;