From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id CBD2D47A42 for ; Thu, 28 Dec 2023 20:43:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A434768CC95; Thu, 28 Dec 2023 22:43:11 +0200 (EET) Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9707268CB09 for ; Thu, 28 Dec 2023 22:43:04 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 6EBFEE7627 for ; Thu, 28 Dec 2023 21:43:04 +0100 (CET) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P0zy94cpDcip for ; Thu, 28 Dec 2023 21:43:02 +0100 (CET) Received: from iq (iq [217.27.212.140]) by iq.passwd.hu (Postfix) with ESMTPS id 4B930E6FF6 for ; Thu, 28 Dec 2023 21:43:02 +0100 (CET) Date: Thu, 28 Dec 2023 21:43:02 +0100 (CET) From: Marton Balint To: FFmpeg development discussions and patches In-Reply-To: <20231213182657.9190-1-cus@passwd.hu> Message-ID: References: <20231213182657.9190-1-cus@passwd.hu> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 1/2] avcodec/mjpegdec: use memset to clear alpha X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Wed, 13 Dec 2023, Marton Balint wrote: > Signed-off-by: Marton Balint > --- > libavcodec/mjpegdec.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Will apply the series. Regards, Marton > > diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c > index 8676155ecf..8191606f43 100644 > --- a/libavcodec/mjpegdec.c > +++ b/libavcodec/mjpegdec.c > @@ -2793,8 +2793,8 @@ the_end: > dst[0][j] = g*257 >> 16; > dst[1][j] = b*257 >> 16; > dst[2][j] = r*257 >> 16; > - dst[3][j] = 255; > } > + memset(dst[3], 255, w); > } > } > if (s->adobe_transform == 2 && s->avctx->pix_fmt == AV_PIX_FMT_YUVA444P) { > @@ -2816,8 +2816,8 @@ the_end: > dst[0][j] = r*257 >> 16; > dst[1][j] = (g*257 >> 16) + 128; > dst[2][j] = (b*257 >> 16) + 128; > - dst[3][j] = 255; > } > + memset(dst[3], 255, w); > } > } > > -- > 2.35.3 > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".