* [FFmpeg-devel] [PATCH] Remove struct named initializer from aac profile option.
@ 2024-03-26 8:42 Muiz Yusuff
2024-03-26 8:49 ` Hendrik Leppkes
0 siblings, 1 reply; 2+ messages in thread
From: Muiz Yusuff @ 2024-03-26 8:42 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Muiz
From: Muiz <muiz.dev@gmail.com>
All fields of the stuct use unnamed struct initialization.
Also omit the field name for `AVOption::unit` to maintain consistency.
---
libavcodec/profiles.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/profiles.h b/libavcodec/profiles.h
index ffc8710ef2..270430a48b 100644
--- a/libavcodec/profiles.h
+++ b/libavcodec/profiles.h
@@ -23,7 +23,7 @@
#include "libavutil/opt.h"
#define FF_AVCTX_PROFILE_OPTION(name, description, type, value) \
- {name, description, 0, AV_OPT_TYPE_CONST, {.i64 = value }, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_## type ##_PARAM, .unit = "avctx.profile"},
+ {name, description, 0, AV_OPT_TYPE_CONST, {.i64 = value }, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_## type ##_PARAM, "avctx.profile"},
#define FF_AAC_PROFILE_OPTS \
FF_AVCTX_PROFILE_OPTION("aac_main", NULL, AUDIO, AV_PROFILE_AAC_MAIN)\
--
2.34.1
_______________________________________________
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".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [FFmpeg-devel] [PATCH] Remove struct named initializer from aac profile option.
2024-03-26 8:42 [FFmpeg-devel] [PATCH] Remove struct named initializer from aac profile option Muiz Yusuff
@ 2024-03-26 8:49 ` Hendrik Leppkes
0 siblings, 0 replies; 2+ messages in thread
From: Hendrik Leppkes @ 2024-03-26 8:49 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On Tue, Mar 26, 2024 at 9:42 AM Muiz Yusuff <muiz.rpi@gmail.com> wrote:
>
> From: Muiz <muiz.dev@gmail.com>
>
> All fields of the stuct use unnamed struct initialization.
> Also omit the field name for `AVOption::unit` to maintain consistency.
"unit" intentionally uses designated initializers, so that adding new
fields before it is more robust and less prone to errors.
See 1e7d2007c3aca1cc1cd3b1ca409f4ded6c885f86
- Hendrik
_______________________________________________
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".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-26 8:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26 8:42 [FFmpeg-devel] [PATCH] Remove struct named initializer from aac profile option Muiz Yusuff
2024-03-26 8:49 ` Hendrik Leppkes
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