avcodec/aacsbr_template: Do not leave bs_num_env invalid
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 5 May 2017 21:00:59 +0000 (23:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 5 May 2017 22:33:19 +0000 (00:33 +0200)
commita8ad83b793e883b8c6d114f81073a4e40c0308a3
tree3a9dbfa5aea0bd219e2faecf14f0c58713b38937
parenta234b5ade3ca6cde805b92b8b6ecacf693460a8c
avcodec/aacsbr_template: Do not leave bs_num_env invalid

Fixes out of array read
Fixes: 1349/clusterfuzz-testcase-minimized-5370707196248064

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