Commit c5dc9f17 authored by michael's avatar michael

simplify


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8655 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 79f7147d
......@@ -1332,10 +1332,8 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment