mjpegdec: check h/v_count, fix context becoming inconsistent and causing out of array...
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 30 Nov 2012 02:58:38 +0000 (03:58 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 30 Nov 2012 03:17:03 +0000 (04:17 +0100)
commita2f680c7bc7642c687aeb4e14d00ac74833c7a09
tree23fc4da302b8765864cebc13496f687150411414
parent08d0969c1402ccec4dce44bd430128fb59d7b790
mjpegdec: check h/v_count, fix context becoming inconsistent and causing out of array accesses.

This also fixes a long standing comment in the code.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegdec.c