diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-09-21 15:33:11 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-09-21 15:33:11 +0200 |
commit | 68b100871961c3e6450871367630e5bf830f6cfd (patch) | |
tree | 214760b240326b9513b72e768f1276fdccc1280f | |
parent | 763519536b63636006c9a421a4b83a58d353b84e (diff) | |
download | ffmpeg-68b100871961c3e6450871367630e5bf830f6cfd.tar.gz |
adpcm: Unbreak ima-dk4
Was broken by commit b9dea1a085c4705e480bd17dfa8c8ce227fdce76
-rw-r--r-- | libavcodec/adpcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 476315c610..5f7f140a9d 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -708,7 +708,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); |