targa: Fix y check in advance_line
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Feb 2013 19:49:32 +0000 (20:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Feb 2013 20:21:26 +0000 (21:21 +0100)
commit796012af6c780b5b13ebca39a491f215515a18fe
tree38072ae21951f84e90e6a9b68bf9eccc8fc939b4
parentf43d09cd60a17a139b3aeb94434dbbbac1a28dab
targa: Fix y check in advance_line

Fixes out of array accesses

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