* [FFmpeg-devel] [PATCH] lavu: add av_scanf_format() and use it on av_sscanf()
@ 2025-07-21 0:54 Jacob Lifshay
2025-07-21 22:30 ` Michael Niedermayer
0 siblings, 1 reply; 2+ messages in thread
From: Jacob Lifshay @ 2025-07-21 0:54 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Jacob Lifshay
Signed-off-by: Jacob Lifshay <programmerjake@gmail.com>
---
doc/APIchanges | 3 +++
libavutil/attributes.h | 2 ++
libavutil/avstring.h | 2 +-
libavutil/version.h | 2 +-
4 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/doc/APIchanges b/doc/APIchanges
index 80eb408788..5c40b7c13d 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2025-03-28
API changes, most recent first:
+2025-07-20 - xxxxxxxxxx - lavu 60.6.100 - attributes.h, avstring.h
+ Add av_scanf_format() and use it on av_sscanf().
+
2025-07-18 - xxxxxxxxxx - lavu 60.5.100 - pixfmt.h
Add AV_PIX_FMT_OHCODEC.
diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index 04c615c952..d15ede1286 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -159,9 +159,11 @@
#if defined(__GNUC__) || defined(__clang__)
# define av_builtin_constant_p __builtin_constant_p
# define av_printf_format(fmtpos, attrpos) __attribute__((__format__(__printf__, fmtpos, attrpos)))
+# define av_scanf_format(fmtpos, attrpos) __attribute__((__format__(__scanf__, fmtpos, attrpos)))
#else
# define av_builtin_constant_p(x) 0
# define av_printf_format(fmtpos, attrpos)
+# define av_scanf_format(fmtpos, attrpos)
#endif
#if AV_GCC_VERSION_AT_LEAST(2,5) || defined(__clang__)
diff --git a/libavutil/avstring.h b/libavutil/avstring.h
index fc095349d2..17f7b03db5 100644
--- a/libavutil/avstring.h
+++ b/libavutil/avstring.h
@@ -419,7 +419,7 @@ int av_match_list(const char *name, const char *list, char separator);
* See libc sscanf manual for more information.
* Locale-independent sscanf implementation.
*/
-int av_sscanf(const char *string, const char *format, ...);
+int av_sscanf(const char *string, const char *format, ...) av_scanf_format(2, 3);
/**
* @}
diff --git a/libavutil/version.h b/libavutil/version.h
index 29cd31e229..946429b8fc 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -79,7 +79,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 60
-#define LIBAVUTIL_VERSION_MINOR 5
+#define LIBAVUTIL_VERSION_MINOR 6
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
--
2.39.5
_______________________________________________
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] lavu: add av_scanf_format() and use it on av_sscanf()
2025-07-21 0:54 [FFmpeg-devel] [PATCH] lavu: add av_scanf_format() and use it on av_sscanf() Jacob Lifshay
@ 2025-07-21 22:30 ` Michael Niedermayer
0 siblings, 0 replies; 2+ messages in thread
From: Michael Niedermayer @ 2025-07-21 22:30 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1.1: Type: text/plain, Size: 505 bytes --]
On Sun, Jul 20, 2025 at 05:54:25PM -0700, Jacob Lifshay wrote:
> Signed-off-by: Jacob Lifshay <programmerjake@gmail.com>
> ---
> doc/APIchanges | 3 +++
> libavutil/attributes.h | 2 ++
> libavutil/avstring.h | 2 +-
> libavutil/version.h | 2 +-
> 4 files changed, 7 insertions(+), 2 deletions(-)
will apply
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who are best at talking, realize last or never when they are wrong.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
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:[~2025-07-21 22:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-21 0:54 [FFmpeg-devel] [PATCH] lavu: add av_scanf_format() and use it on av_sscanf() Jacob Lifshay
2025-07-21 22:30 ` Michael Niedermayer
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