simplify
Originally committed as revision 8655 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b736a365be
commit
204424a4c7
@ -1332,10 +1332,8 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
|
|||||||
table[0][i] = get_sbits(&gb, 16);
|
table[0][i] = get_sbits(&gb, 16);
|
||||||
|
|
||||||
/* Initialize the previous sample. */
|
/* Initialize the previous sample. */
|
||||||
for (ch = 0; ch < 2; ch++) {
|
for (i = 0; i < 4; i++)
|
||||||
prev[ch][0] = get_sbits(&gb, 16);
|
prev[0][i] = get_sbits(&gb, 16);
|
||||||
prev[ch][1] = get_sbits(&gb, 16);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (samplecnt >= (samples_end - samples) / (st + 1)) {
|
if (samplecnt >= (samples_end - samples) / (st + 1)) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "allocated output buffer is too small\n");
|
av_log(avctx, AV_LOG_ERROR, "allocated output buffer is too small\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user