avcodec/ulti: Check number of blocks at init