avcodec/cfhd: Increase minimum band dimension to 3
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Aug 2016 19:34:38 +0000 (21:34 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Aug 2016 20:28:32 +0000 (22:28 +0200)
commitb8b36717217c6f45db71c77ad4e7c65521e7d9ff
tree270014b8818a09d54722d7fb091d334bdabe96d8
parent0d8b6a15ddcaded970c7b8545573a4ed1fde8e21
avcodec/cfhd: Increase minimum band dimension to 3

The implementation does not currently support len=2

Fixes out of array accesses
Fixes: 29d1b3db5ba2205e82b0b3a533e057a3/asan_heap-oob_12b650c_9254_3b8c4e4d931eb2c32841c18ebb297f1d.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cfhd.c