avcodec/cfhd: Require valid setup before Lowpass coefficients, BandHeader and BandSec...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Apr 2021 13:19:22 +0000 (15:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Apr 2021 17:43:39 +0000 (19:43 +0200)
commita80b0ee981c45d25651892f96a03650ed6f430e1
treeeaf705fb902c35040edd74f1cdb77251af497c4a
parentde40b2fe416bad556b7f2b7f58c1df2aab90cbfa
avcodec/cfhd: Require valid setup before Lowpass coefficients, BandHeader and BandSecondPass

Previously the code skipped all security checks when these where encountered but prior data was incorrect.
Also replace an always true condition by an assert

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3b88c88fa1888c47b0767d84bfebf1fd656c7846)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cfhd.c