wmalosslessdec: Reset put bit buffer when num_saved_bits is reset.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Apr 2012 14:32:56 +0000 (16:32 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 29 Sep 2012 17:17:38 +0000 (19:17 +0200)
commitd65d8347314b645051e336aed141aaf32a6c0d02
tree2cc4f8444e86501480ef5fe93b6b127bdae28189
parentd05f72c75445969cd7bdb1d860635c9880c67fb6
wmalosslessdec: Reset put bit buffer when num_saved_bits is reset.

Fixes CVE-2012-2799

CC:libav-stable@libav.org

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/wmalosslessdec.c