adpcm: Fix trellis encoding of IMA QT
authorMartin Storsjö <martin@martin.st>
Thu, 5 Jun 2014 08:56:10 +0000 (11:56 +0300)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jun 2014 15:07:11 +0000 (17:07 +0200)
commita32765c4252eb106a2ade543026ef6f59e699bfa
tree0b5ee1befe452102e66e324aadf8dbec930335f2
parent3133e7fd447513071b3075ae1a61f055003c3e34
adpcm: Fix trellis encoding of IMA QT

This was broken in 095be4fb - samples+ch (for the previous
non-planar case) equals &samples_p[ch][0]. The confusion
probably stemmed from the IMA WAV case where it originally
was &samples[avctx->channels + ch], which was correctly
changed into &samples_p[ch][1].

Fixes part of Ticket3701

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/adpcmenc.c