avcodec/ac3dec: Keep track of band structure
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 May 2017 17:28:01 +0000 (19:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 01:41:33 +0000 (03:41 +0200)
commit0c92adda48c419c4026ac1a7551ecef8fa82bafd
tree53169b19ef4b252be3bb1504c39c6f9d9dea670a
parent2ec60b919ffc18da9a78f117841612506ce1415e
avcodec/ac3dec: Keep track of band structure

It is needed in some corner cases that seem not to be forbidden
Fixes: out of array index
Fixes: 1538/clusterfuzz-testcase-minimized-4696904925446144

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