avcodec/jpeglsdec: Apply transform only to initialized lines
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 19 Sep 2019 16:52:50 +0000 (18:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 8 Oct 2019 14:24:58 +0000 (16:24 +0200)
commit675c6d1e171085cc85068fd29c5dfe2b3dd22bda
treeb26c650a56132caa937e620cb5b83ee1c1bc76ee
parentfe7fbf3a2273b2f13c3190fcda58b9663b535157
avcodec/jpeglsdec: Apply transform only to initialized lines

Fixes: Timeout (110sec -> 1sec)
Fixes: 17123/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AMV_fuzzer-5636452758585344

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeglsdec.c