lavc/mjpegdec: use ptrdiff_t instead of ssize_t