forked from FFmpeg/FFmpeg
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:
parent
a6c648f2b4
commit
e51cc7ed85
1 changed files with 226 additions and 226 deletions
|
@ -453,7 +453,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
|
|||
avpriv_request_sample(s->avctx, "progressively coded interlaced picture");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
} else{
|
||||
} else {
|
||||
if (s->v_max == 1 && s->h_max == 1 && s->lossless==1 && (nb_components==3 || nb_components==4))
|
||||
s->rgb = 1;
|
||||
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;
|
||||
break;
|
||||
default:
|
||||
unk_pixfmt:
|
||||
unk_pixfmt:
|
||||
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_v, 0, sizeof(s->upscale_v));
|
||||
|
|
Loading…
Add table
Reference in a new issue