avcodec/mjpegdec: set upscale_h/upscale_v using generic code instead of hardcoding...