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>
Mon, 6 Feb 2017 09:17:13 +0000 (10:17 +0100)
commit7323a8ab2970d4b7c9b5a96738e4bf82c90459b1
tree9889e330b4877f14c9b5094239593ea18963aa59
parentaa20863f4400a25bdbac36df94cdcb6e759a1c2b
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