avcodec/aacsbr_template: Do not change bs_num_env before its checked
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 May 2017 02:12:15 +0000 (04:12 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 May 2017 16:07:33 +0000 (18:07 +0200)
commit87b08ee6d2a3b0880f0a267c5d51dc7f415e81d7
tree00c28c90e9871c1a10f4457b9f7b782083bfab7b
parent48f7757749564dac8ad68d11fca13d0739aa2304
avcodec/aacsbr_template: Do not change bs_num_env before its checked

Fixes: 1489/clusterfuzz-testcase-minimized-5075102901207040
Fixes: out of array access

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