avcodec/vmdvideo: Check len before using it in method 3