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
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52024-02-28 - xxxxxxxxxx - lavf 60.23.100 - avio.h
6 avio_print_string_array() now accepts an array of const pointers.
7
52024-02-26 - xxxxxxxxxx - lavf 60.22.101 - avformat.h82024-02-26 - xxxxxxxxxx - lavf 60.22.101 - avformat.h
6 AV_DISPOSITION_DEPENDENT may now also be used for video streams9 AV_DISPOSITION_DEPENDENT may now also be used for video streams
7 intended to be merged with other video streams for presentation.10 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
544 * Usually you don't need to use this function directly but its macro wrapper,544 * Usually you don't need to use this function directly but its macro wrapper,
545 * avio_print.545 * avio_print.
546 */546 */
547void avio_print_string_array(AVIOContext *s, const char *strings[]);547void avio_print_string_array(AVIOContext *s, const char * const strings[]);
548 548
549/**549/**
550 * Write strings (const char *) to the context.550 * 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
1400 return ret;1400 return ret;
1401}1401}
1402 1402
1403void avio_print_string_array(AVIOContext *s, const char *strings[])1403void avio_print_string_array(AVIOContext *s, const char *const strings[])
1404{1404{
1405 for(; *strings; strings++)1405 for(; *strings; strings++)
1406 avio_write(s, (const unsigned char *)*strings, strlen(*strings));1406 avio_write(s, (const unsigned char *)*strings, strlen(*strings));
libavformat/version.h+2−2
@@ -31,8 +31,8 @@ · 30 unmodified lines
31 31
32#include "version_major.h"32#include "version_major.h"
33 33
34#define LIBAVFORMAT_VERSION_MINOR 2234#define LIBAVFORMAT_VERSION_MINOR 23
35#define LIBAVFORMAT_VERSION_MICRO 10135#define LIBAVFORMAT_VERSION_MICRO 100
36 36
37#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \37#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
38 LIBAVFORMAT_VERSION_MINOR, \38 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