avcodec/gifdec: factorize interleave end handling out
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 18:15:52 +0000 (20:15 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 18:20:23 +0000 (20:20 +0200)
commit8f1457864be8fb9653643519dea1c6492f1dde57
treeed1eba393b1c6af1c96709fdd14f90868509131c
parente7e5114c506957f40aafd794e06de1a7e341e9d5
avcodec/gifdec: factorize interleave end handling out

also change it to a loop
Fixes out of array access
Fixes: asan_heap-oob_ca5410_8_asan_heap-oob_ca5410_97_ID_LSD_Size_Less_Then_Data_Inter_3.gif

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