[Ffmpeg-cvslog] r8655 - trunk/libavcodec/adpcm.c
michael
subversion
Sat Apr 7 23:30:20 CEST 2007
Author: michael
Date: Sat Apr 7 23:30:19 2007
New Revision: 8655
Modified:
trunk/libavcodec/adpcm.c
Log:
simplify
Modified: trunk/libavcodec/adpcm.c
==============================================================================
--- trunk/libavcodec/adpcm.c (original)
+++ trunk/libavcodec/adpcm.c Sat Apr 7 23:30:19 2007
@@ -1332,10 +1332,8 @@ static int adpcm_decode_frame(AVCodecCon
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");
More information about the ffmpeg-cvslog
mailing list