Mercurial > libavcodec.hg
comparison adpcm.c @ 4808:ec3c56e6185b libavcodec
simplify
author | michael |
---|---|
date | Sat, 07 Apr 2007 21:30:19 +0000 |
parents | 30ac525752b9 |
children | 3a95bd17d355 |
comparison
equal
deleted
inserted
replaced
4807:30ac525752b9 | 4808:ec3c56e6185b |
---|---|
1330 | 1330 |
1331 for (i = 0; i < 32; i++) | 1331 for (i = 0; i < 32; i++) |
1332 table[0][i] = get_sbits(&gb, 16); | 1332 table[0][i] = get_sbits(&gb, 16); |
1333 | 1333 |
1334 /* Initialize the previous sample. */ | 1334 /* Initialize the previous sample. */ |
1335 for (ch = 0; ch < 2; ch++) { | 1335 for (i = 0; i < 4; i++) |
1336 prev[ch][0] = get_sbits(&gb, 16); | 1336 prev[0][i] = get_sbits(&gb, 16); |
1337 prev[ch][1] = get_sbits(&gb, 16); | |
1338 } | |
1339 | 1337 |
1340 if (samplecnt >= (samples_end - samples) / (st + 1)) { | 1338 if (samplecnt >= (samples_end - samples) / (st + 1)) { |
1341 av_log(avctx, AV_LOG_ERROR, "allocated output buffer is too small\n"); | 1339 av_log(avctx, AV_LOG_ERROR, "allocated output buffer is too small\n"); |
1342 return -1; | 1340 return -1; |
1343 } | 1341 } |