From 66b26265f87f1839d9fa0baaa92ad57b1d4cf3fb Mon Sep 17 00:00:00 2001 From: Jai Menon Date: Sun, 15 Jun 2008 18:01:25 +0000 Subject: [PATCH] fix verbatim mode decoding. patch by Jai Menon (realityman gmx net). Originally committed as revision 13775 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/alac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/alac.c b/libavcodec/alac.c index e704565e8d..6815fa1aea 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -536,8 +536,8 @@ static int alac_decode_frame(AVCodecContext *avctx, } else { /* not compressed, easy case */ int i, chan; - for (chan = 0; chan < channels; chan++) - for (i = 0; i < outputsamples; i++) { + for (i = 0; i < outputsamples; i++) + for (chan = 0; chan < channels; chan++) { int32_t audiobits; audiobits = get_bits_long(&alac->gb, alac->setinfo_sample_size);