reduce dependancy between motion estimation and MpegEncContext