History

avformat/avio: Make avio_print_string_array() accept const pointers

Andreas Rheinhardt committed 2 years ago

Commit dfb9d8a1 parent 1e98cc44 files · +7 −4Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavformat/avio.h +1 −1
  3. libavformat/aviobuf.c +1 −1
  4. libavformat/version.h +2 −2
doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2024-02-28 - xxxxxxxxxx - lavf 60.23.100 - avio.h
6+ avio_print_string_array() now accepts an array of const pointers.
7+
58 2024-02-26 - xxxxxxxxxx - lavf 60.22.101 - avformat.h
69 AV_DISPOSITION_DEPENDENT may now also be used for video streams
710 intended to be merged with other video streams for presentation.
libavformat/avio.h+1−1
@@ -544,7 +544,7 @@ int avio_printf(AVIOContext *s, const char *fmt, ...) av_printf_format(2, 3); · 543 unmodified lines
544544 * Usually you don't need to use this function directly but its macro wrapper,
545545 * avio_print.
546546 */
547−void avio_print_string_array(AVIOContext *s, const char *strings[]);
547+void avio_print_string_array(AVIOContext *s, const char * const strings[]);
548548
549549 /**
550550 * Write strings (const char *) to the context.
libavformat/aviobuf.c+1−1
@@ -1400,7 +1400,7 @@ int avio_printf(AVIOContext *s, const char *fmt, ...) · 1399 unmodified lines
14001400 return ret;
14011401 }
14021402
1403−void avio_print_string_array(AVIOContext *s, const char *strings[])
1403+void avio_print_string_array(AVIOContext *s, const char *const strings[])
14041404 {
14051405 for(; *strings; strings++)
14061406 avio_write(s, (const unsigned char *)*strings, strlen(*strings));
libavformat/version.h+2−2
@@ -31,8 +31,8 @@ · 30 unmodified lines
3131
3232 #include "version_major.h"
3333
34−#define LIBAVFORMAT_VERSION_MINOR 22
35−#define LIBAVFORMAT_VERSION_MICRO 101
34+#define LIBAVFORMAT_VERSION_MINOR 23
35+#define LIBAVFORMAT_VERSION_MICRO 100
3636
3737 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
3838 LIBAVFORMAT_VERSION_MINOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t