aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-09-21 15:33:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-22 13:20:59 +0200
commitef475620b55a166b2131fd478391d4054f19ecd5 (patch)
tree77a272782fd31c6fb00fe755dc405b4c3bf6a39e
parenta88ed5a481c365b9ca95588aeee6d9858ad5df40 (diff)
downloadffmpeg-ef475620b55a166b2131fd478391d4054f19ecd5.tar.gz
adpcm: Unbreak ima-dk4
Was broken by commit b9dea1a085c4705e480bd17dfa8c8ce227fdce76 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/adpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index f22c0db19b..149fee1381 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -717,7 +717,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
src++;
*samples++ = cs->predictor;
}
- for (n = (nb_samples >> (1 - st)) - 1; n > 0; n--) {
+ for (n = (nb_samples >> (1 - st)) - 1; n > 0; n--, src++) {
uint8_t v = *src;
*samples++ = adpcm_ima_expand_nibble(&c->status[0 ], v >> 4 , 3);
*samples++ = adpcm_ima_expand_nibble(&c->status[st], v & 0x0F, 3);