lavc/mjpegdec: avoid unneeded allocation if the frame is to be skipped