avcodec/ffv1dec: Clear quant_table_count if its invalid
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 14 Nov 2015 12:21:58 +0000 (13:21 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 2 Dec 2015 11:03:17 +0000 (12:03 +0100)
commitff3e717003efe3a3f06aa0371be5d40826fa0f03
tree00c36595ad45faa3211a7fed1d589793afe1ea90
parent1c6243228c343132e094cdab1cb048e20899806c
avcodec/ffv1dec: Clear quant_table_count if its invalid

Fixes deallocation of corrupted pointer
Fixes: 343dfbe142a38b521ed069dc4ea7c03b/signal_sigsegv_421427_4074_ffb11959610278cd40dbc153464aa254.avi
No releases affected

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e04126072e984f8db5db9da9303c89ae01f7d6bb)

Fixes ticket #5052.
libavcodec/ffv1dec.c