avcodec/dca_lbr: Fix off by 1 error in freq check
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 2 Feb 2017 14:23:31 +0000 (15:23 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Feb 2017 19:32:01 +0000 (20:32 +0100)
commitc26c8bb23a51cf6392b3a825ca48b8bd4c87b582
treeaa392dacb15639c718def711c5822af06bf97e76
parente23768b8ffc3d17af1c0cac33ea9c8b3a6a50437
avcodec/dca_lbr: Fix off by 1 error in freq check

Fixes out of array read
Fixes: 510/clusterfuzz-testcase-5737865715646464

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 61f70416f8542cc86c84ae6e0342ba10a35d7cba)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dca_lbr.c