avcodec/tscc: Move reget buffer to after decoding
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Jul 2018 11:52:50 +0000 (13:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 18 Jul 2018 11:59:25 +0000 (13:59 +0200)
commit91578f5798d36467e8e2138eada5ce26c12b4e1e
tree25ab8c28cd912693dcb4e0595a76c8bbe66d83e9
parent706c9beaead70ee861e183338e136382b17ade05
avcodec/tscc: Move reget buffer to after decoding

reget buffer can be time consuming, theres no need to do it if failures
occur

Testcase: 9010/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TSCC_fuzzer-6042614817095680

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