avcodec/lagarith: Optimize FRAME_SOLID_RGBA
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 12 Aug 2018 22:19:55 +0000 (00:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Aug 2018 00:32:41 +0000 (02:32 +0200)
commitdbac849c4db9c9378ab6e55f4f489debf2659b04
treecb802dd80042d3e2bc8bf55f018fd723351d1f4a
parentde1b44c20604c05812ad70167a26d45e0ec1526f
avcodec/lagarith: Optimize FRAME_SOLID_RGBA

Changes 5466110 decicycles to 1798072 decicycles (tested with fate-suite/lagarith/lag-rgb32.avi)

Fixes: Timeout
Fixes: 9484/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-5707859156271104

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