mpegvideo: fix motion_val checks