diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index ac94345613..2fd371af03 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -2092,6 +2092,28 @@ the_end: } } } + if (s->adobe_transform == 2 && s->avctx->pix_fmt == AV_PIX_FMT_YUVA444P) { + int w = s->picture_ptr->width; + int h = s->picture_ptr->height; + for (i=0; ipicture_ptr->data[index] + + s->picture_ptr->linesize[index]*i; + } + for (j=0; j> 16; + dst[1][j] = (g*257 >> 16) + 128; + dst[2][j] = (b*257 >> 16) + 128; + dst[3][j] = 255; + } + } + } if (s->stereo3d) { AVStereo3D *stereo = av_stereo3d_create_side_data(data);