avcodec/mjpegdec: Fix context fields becoming inconsistent
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Nov 2014 12:53:06 +0000 (13:53 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Nov 2014 12:54:20 +0000 (13:54 +0100)
commit0eecf40935b22644e6cd74c586057237ecfd6844
tree6647a4b6fe146d863072ae30fce5557867a04c42
parentca59b5b6eceb1adbf96b8248128e58bfbb79c9a6
avcodec/mjpegdec: Fix context fields becoming inconsistent

Fixes out of array access
Fixes: asan_heap-oob_1ca4f85_2760_cov_144449187_miss_congeniality_pegasus_ljpg.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegdec.c