changeset 4808:ec3c56e6185b libavcodec

simplify
author michael
date Sat, 07 Apr 2007 21:30:19 +0000
parents 30ac525752b9
children 3a95bd17d355
files adpcm.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/adpcm.c	Sat Apr 07 21:27:58 2007 +0000
+++ b/adpcm.c	Sat Apr 07 21:30:19 2007 +0000
@@ -1332,10 +1332,8 @@
             table[0][i] = get_sbits(&gb, 16);
 
         /* Initialize the previous sample.  */
-        for (ch = 0; ch < 2; ch++) {
-            prev[ch][0] = get_sbits(&gb, 16);
-            prev[ch][1] = get_sbits(&gb, 16);
-        }
+        for (i = 0; i < 4; i++)
+            prev[0][i] = get_sbits(&gb, 16);
 
         if (samplecnt >= (samples_end - samples) /  (st + 1)) {
             av_log(avctx, AV_LOG_ERROR, "allocated output buffer is too small\n");