Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Marton Balint <cus@passwd.hu>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 1/2] avcodec/mjpegdec: use memset to clear alpha
Date: Thu, 28 Dec 2023 21:43:02 +0100 (CET)
Message-ID: <dcbe931a-89d9-d4d8-2193-6c1095e165dc@passwd.hu> (raw)
In-Reply-To: <20231213182657.9190-1-cus@passwd.hu>



On Wed, 13 Dec 2023, Marton Balint wrote:

> Signed-off-by: Marton Balint <cus@passwd.hu>
> ---
> 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".

      parent reply	other threads:[~2023-12-28 20:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-13 18:26 Marton Balint
2023-12-13 18:26 ` [FFmpeg-devel] [PATCH 2/2] avcodec/mjpegdec: avoid indirection when accessing avctx Marton Balint
2023-12-28 20:43 ` Marton Balint [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dcbe931a-89d9-d4d8-2193-6c1095e165dc@passwd.hu \
    --to=cus@passwd.hu \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git