[FFmpeg-devel] [PATCH] avcodec/mjpegdec: Fix compilation

James Almer jamrial at gmail.com
Fri Sep 30 20:29:02 EEST 2022


On 9/30/2022 2:23 PM, Andreas Rheinhardt wrote:
> Regression since 9a494b82d998823d0de68cb6b8db83cc451d1781.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>   libavcodec/mjpegdec.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
> index 85d1129f30..3374ae71bd 100644
> --- a/libavcodec/mjpegdec.c
> +++ b/libavcodec/mjpegdec.c
> @@ -596,7 +596,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
>           case 0x14111100:
>           case 0x22211100:
>           case 0x22112100:
> -            if (s->component_id[0] == 'R' && s->component_id[1] == 'G' && s->component_id[B] == 'B') {
> +            if (s->component_id[0] == 'R' && s->component_id[1] == 'G' && s->component_id[2] == 'B') {
>                   if (s->bits <= 8) s->avctx->pix_fmt = AV_PIX_FMT_GBRP;
>                   else
>                       goto unk_pixfmt;

LGTM, so please push.


More information about the ffmpeg-devel mailing list