You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavc/mjpegdec: make code aligned
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Zhong Li <zhong.li@intel.com>
This commit is contained in:
@@ -453,7 +453,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
|
|||||||
avpriv_request_sample(s->avctx, "progressively coded interlaced picture");
|
avpriv_request_sample(s->avctx, "progressively coded interlaced picture");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
} else{
|
} else {
|
||||||
if (s->v_max == 1 && s->h_max == 1 && s->lossless==1 && (nb_components==3 || nb_components==4))
|
if (s->v_max == 1 && s->h_max == 1 && s->lossless==1 && (nb_components==3 || nb_components==4))
|
||||||
s->rgb = 1;
|
s->rgb = 1;
|
||||||
else if (!s->lossless)
|
else if (!s->lossless)
|
||||||
@@ -638,7 +638,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
|
|||||||
s->avctx->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG;
|
s->avctx->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
unk_pixfmt:
|
unk_pixfmt:
|
||||||
avpriv_report_missing_feature(s->avctx, "Pixel format 0x%x bits:%d", pix_fmt_id, s->bits);
|
avpriv_report_missing_feature(s->avctx, "Pixel format 0x%x bits:%d", pix_fmt_id, s->bits);
|
||||||
memset(s->upscale_h, 0, sizeof(s->upscale_h));
|
memset(s->upscale_h, 0, sizeof(s->upscale_h));
|
||||||
memset(s->upscale_v, 0, sizeof(s->upscale_v));
|
memset(s->upscale_v, 0, sizeof(s->upscale_v));
|
||||||
|
Reference in New Issue
Block a user