back-port from HEAD: - add resync-marker range check - return E_FAIL on XVID_ERR_MEMORY error in dshow
Changed paths: