changeset 11372:e6e95656937d libavcodec

Fix last frame block size correction.
author thilo.borgmann
date Sat, 06 Mar 2010 17:13:31 +0000
parents 4532987cd74b
children b57409c0c286
files alsdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/alsdec.c	Sat Mar 06 15:09:14 2010 +0000
+++ b/alsdec.c	Sat Mar 06 17:13:31 2010 +0000
@@ -519,7 +519,7 @@
         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;