Mercurial > libavcodec.hg
comparison alsdec.c @ 11372:e6e95656937d libavcodec
Fix last frame block size correction.
author | thilo.borgmann |
---|---|
date | Sat, 06 Mar 2010 17:13:31 +0000 |
parents | 8173c059f769 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
11371:4532987cd74b | 11372:e6e95656937d |
---|---|
517 | 517 |
518 if (ctx->cur_frame_length != ctx->sconf.frame_length) { | 518 if (ctx->cur_frame_length != ctx->sconf.frame_length) { |
519 unsigned int remaining = ctx->cur_frame_length; | 519 unsigned int remaining = ctx->cur_frame_length; |
520 | 520 |
521 for (b = 0; b < ctx->num_blocks; b++) { | 521 for (b = 0; b < ctx->num_blocks; b++) { |
522 if (remaining < div_blocks[b]) { | 522 if (remaining <= div_blocks[b]) { |
523 div_blocks[b] = remaining; | 523 div_blocks[b] = remaining; |
524 ctx->num_blocks = b + 1; | 524 ctx->num_blocks = b + 1; |
525 break; | 525 break; |
526 } | 526 } |
527 | 527 |