avcodec/scpr: Use av_memcpy_backptr() in type 17 and 33
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 29 Jul 2019 22:52:18 +0000 (00:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 11 Aug 2019 17:13:21 +0000 (19:13 +0200)
commit950a21e83c742714d6afbecd3e3fd1887e80fa40
tree5174a350f2ce5388bf908a61b03f6d4e8fb760e9
parent1fedba3c350a9eb22a1748c9056206d63d4d2dd9
avcodec/scpr: Use av_memcpy_backptr() in type 17 and 33

This makes the changed code-path faster.

Change not tested except with the fuzzer testcase as I found no other testcase.

Improves: Timeout (136sec -> 74sec)
Improves: 16040/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5705876062601216

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
libavcodec/scpr.c