lavc/mjpegdec: speed up scan data copy