wavpack: Reset internal state on corrupted blocks
authorLaurent Aimar <fenrir@videolan.org>
Mon, 26 Sep 2011 22:18:29 +0000 (22:18 +0000)
committerJanne Grunau <janne-libav@jannau.net>
Fri, 7 Oct 2011 14:25:31 +0000 (16:25 +0200)
commit2c6cf1394096d08396faadc6e7c0b404fd6df006
tree4737501eb899211cb2c8ee708c2633dc2de90cf3
parent2c1ba7994190fa2f1ad430594551070a49353bd1
wavpack: Reset internal state on corrupted blocks

wavpack_decode_block() supposes that it is called back with the exact
same buffer unless it has returned with an error. With multi-channels
files, wavpack_decode_frame() was breaking this assumption.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
libavcodec/wavpack.c