[FFmpeg-cvslog] avformat/avio: Make avio_print_string_array() accept const pointers
Andreas Rheinhardt
git at videolan.org
Sat Mar 2 05:06:38 EET 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Feb 28 19:43:16 2024 +0100| [dfb9d8a5a2f5300bb990c3f2240103f0d773052a] | committer: Andreas Rheinhardt
avformat/avio: Make avio_print_string_array() accept const pointers
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dfb9d8a5a2f5300bb990c3f2240103f0d773052a
---
doc/APIchanges | 3 +++
libavformat/avio.h | 2 +-
libavformat/aviobuf.c | 2 +-
libavformat/version.h | 4 ++--
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/doc/APIchanges b/doc/APIchanges
index 10f6667e9e..a1eecea9fd 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09
API changes, most recent first:
+2024-02-28 - xxxxxxxxxx - lavf 60.23.100 - avio.h
+ avio_print_string_array() now accepts an array of const pointers.
+
2024-02-26 - xxxxxxxxxx - lavf 60.22.101 - avformat.h
AV_DISPOSITION_DEPENDENT may now also be used for video streams
intended to be merged with other video streams for presentation.
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 887a397c37..43bce60ffd 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -544,7 +544,7 @@ int avio_printf(AVIOContext *s, const char *fmt, ...) av_printf_format(2, 3);
* Usually you don't need to use this function directly but its macro wrapper,
* avio_print.
*/
-void avio_print_string_array(AVIOContext *s, const char *strings[]);
+void avio_print_string_array(AVIOContext *s, const char * const strings[]);
/**
* Write strings (const char *) to the context.
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 76780bc852..d80b8527bb 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -1400,7 +1400,7 @@ int avio_printf(AVIOContext *s, const char *fmt, ...)
return ret;
}
-void avio_print_string_array(AVIOContext *s, const char *strings[])
+void avio_print_string_array(AVIOContext *s, const char *const strings[])
{
for(; *strings; strings++)
avio_write(s, (const unsigned char *)*strings, strlen(*strings));
diff --git a/libavformat/version.h b/libavformat/version.h
index 3fa8e04314..a8385d1a7b 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -31,8 +31,8 @@
#include "version_major.h"
-#define LIBAVFORMAT_VERSION_MINOR 22
-#define LIBAVFORMAT_VERSION_MICRO 101
+#define LIBAVFORMAT_VERSION_MINOR 23
+#define LIBAVFORMAT_VERSION_MICRO 100
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
More information about the ffmpeg-cvslog
mailing list