avcodec/dvbsubdec: Compute scoretab without iterating over pixels multiple times...
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Jun 2018 21:32:23 +0000 (23:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Jun 2018 11:43:39 +0000 (13:43 +0200)
commit71ba79702d3330c2aff66434e9fbe515c8f44a6b
tree73063b05d2460e46ee45ed267f577a6b985625a8
parentb31189881a4cf54b0057ecf3eab917ad56eecfea
avcodec/dvbsubdec: Compute scoretab without iterating over pixels multiple times in compute_default_clut()

Improves speed 102->2 sec
Testcase: 8655/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVBSUB_fuzzer-6277869285146624
Fixes: Timeout

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