Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] libavfilter: mark comp_expr_str as const in LutContext
@ 2026-01-14  9:47 Adeba via ffmpeg-devel
  2026-01-19  1:51 ` [FFmpeg-devel] " Michael Niedermayer via ffmpeg-devel
  0 siblings, 1 reply; 2+ messages in thread
From: Adeba via ffmpeg-devel @ 2026-01-14  9:47 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Adeba

[-- Attachment #1: Type: text/plain, Size: 109 bytes --]

Hello,

This patch marks comp_expr_str in LutContext as const to improve code
safety.

Thanks,
Adeba Shahnaz

[-- Attachment #2: 0001-PATCH-libavfilter-mark-comp_expr_str-as-const-in-Lut.patch --]
[-- Type: application/octet-stream, Size: 824 bytes --]

[-- Attachment #3: Type: text/plain, Size: 163 bytes --]

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [FFmpeg-devel] Re: [PATCH] libavfilter: mark comp_expr_str as const in LutContext
  2026-01-14  9:47 [FFmpeg-devel] [PATCH] libavfilter: mark comp_expr_str as const in LutContext Adeba via ffmpeg-devel
@ 2026-01-19  1:51 ` Michael Niedermayer via ffmpeg-devel
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Niedermayer via ffmpeg-devel @ 2026-01-19  1:51 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: Michael Niedermayer


[-- Attachment #1.1: Type: text/plain, Size: 1472 bytes --]

Hi Adeba

On Wed, Jan 14, 2026 at 03:17:15PM +0530, Adeba via ffmpeg-devel wrote:
> Hello,
> 
> This patch marks comp_expr_str in LutContext as const to improve code
> safety.
> 
> Thanks,
> Adeba Shahnaz

>  vf_lut.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> ac8e5f6f1618b72ab39c74d98ec218365ec6224e  /var0001-PATCH-libavfilter-mark-comp_expr_str-as-const-in-Lut.patch
> From c8bcd080f602bab8cd4e399db528377010ea8197 Mon Sep 17 00:00:00 2001
> From: Adeeba Shahnaz <adeebashahnaz@Adeebas-MacBook-Pro.local>
> Date: Wed, 14 Jan 2026 15:15:23 +0530
> Subject: [PATCH] [PATCH] libavfilter: mark comp_expr_str as const in
>  LutContext
> 
> ---
>  libavfilter/vf_lut.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c
> index d15fb85c4e..3acb08780c 100644
> --- a/libavfilter/vf_lut.c
> +++ b/libavfilter/vf_lut.c
> @@ -64,7 +64,7 @@ enum var_name {
>  typedef struct LutContext {
>      const AVClass *class;
>      uint16_t lut[4][256 * 256];  ///< lookup table for each component
> -    char   *comp_expr_str[4];
> +    const  char  *comp_expr_str[4];
>      AVExpr *comp_expr[4];

why the number of spaces ?

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

For a strong democracy, genuine criticism is necessary, allegations benefit
noone, they just cause unnecessary conflicts. - Narendra Modi

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 163 bytes --]

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-19  1:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-14  9:47 [FFmpeg-devel] [PATCH] libavfilter: mark comp_expr_str as const in LutContext Adeba via ffmpeg-devel
2026-01-19  1:51 ` [FFmpeg-devel] " Michael Niedermayer via ffmpeg-devel

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