avcodec/bonk: check level value to not reach invalid values

Also reset bitstream parsing variables on fatal error.
This commit is contained in:
Paul B Mahol 2022-11-22 11:27:39 +01:00
parent 9f5a9a7499
commit abb5ff373d