avcodec/msvideo1: Check for too small dimensions