avcodec/ttadata: Add sentinel at the end of ff_tta_shift_1
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 8 Jun 2021 18:10:56 +0000 (20:10 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit93ef1742117b914da8426c66a3cadb545568ce67
treea47769fd1746ff302be7cdf8ba2d3f389004e770
parent7af1a73711040b31f567a104dcb7d6c7b17abec7
avcodec/ttadata: Add sentinel at the end of ff_tta_shift_1

Fixes: out of array access
Fixes: 34933/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TTA_fuzzer-5629322560929792

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit dbbcfbcc4e4f0e91f814f2e13ced7b6d99069518)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ttadata.c