diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-06 20:30:08 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-10 22:55:42 +0200 |
commit | 2a68d945cd74265bb71c3d38b7a2e7f7d7e87be5 (patch) | |
tree | 0603f863c7490e48e0c1dcd0f86b5b8480cce31d /libavformat/hdsenc.c | |
parent | e8704a8f60041abb84585efaf3223abf0b6dcb90 (diff) | |
download | ffmpeg-2a68d945cd74265bb71c3d38b7a2e7f7d7e87be5.tar.gz |
avformat/avio: Constify data pointees of write callbacks
They are currently non-const for reasons unknown, although
avio_write() accepts a const buffer.
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/hdsenc.c')
-rw-r--r-- | libavformat/hdsenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c index 080a873ee8..7062441b70 100644 --- a/libavformat/hdsenc.c +++ b/libavformat/hdsenc.c @@ -112,7 +112,11 @@ static int parse_header(OutputStream *os, const uint8_t *buf, int buf_size) return 0; } +#if FF_API_AVIO_WRITE_NONCONST static int hds_write(void *opaque, uint8_t *buf, int buf_size) +#else +static int hds_write(void *opaque, const uint8_t *buf, int buf_size) +#endif { OutputStream *os = opaque; if (os->out) { |