From 754266142112f10712b9984306932410ba87139d Mon Sep 17 00:00:00 2001
From: stefang <stefang@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Date: Fri, 30 Jan 2009 06:38:46 +0000
Subject: [PATCH] avoid indeterminate order of accessing src

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16855 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
---
 libavcodec/adpcm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 883b723c6..87f4f4448 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -1300,9 +1300,9 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
         }
 
         for (channel=0; channel<avctx->channels; channel++) {
-            srcC = src + (big_endian ? bytestream_get_be32(&src)
-                                     : bytestream_get_le32(&src))
-                       + (avctx->channels-channel-1) * 4;
+            srcC  = src + (avctx->channels-channel) * 4;
+            srcC += (big_endian ? bytestream_get_be32(&src)
+                                : bytestream_get_le32(&src));
             samplesC = samples + channel;
 
             if (avctx->codec->id == CODEC_ID_ADPCM_EA_R1) {
-- 
2.25.4