avcodec/bitstream: Check for more conflicting codes in build_table()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 5 Jun 2019 10:18:54 +0000 (12:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 14 Jun 2019 19:36:39 +0000 (21:36 +0200)
commita7e3b271fc9a91c5d2e4df32e70e525c15c6d3ef
tree9f724ee76407deb42f6b502ea938f043a1cecf41
parente78b0f83748f92ea9e93b21c36082e0dd04d7cb1
avcodec/bitstream: Check for more conflicting codes in build_table()

Fixes: out of array read
Fixes: 14563/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5646451545210880

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