summaryrefslogtreecommitdiff
path: root/libavformat/gif.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-04 18:08:14 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-09 19:37:53 +0200
commitd5a0eba8a2481711e708442bcc1d14bf16e9d20b (patch)
tree56a13a62e6bd34e5a446f7d7a45dcc3ee6d246ba /libavformat/gif.c
parent417554bdd6da58ec473096494618a22f7ac49b11 (diff)
downloadffmpeg-d5a0eba8a2481711e708442bcc1d14bf16e9d20b.tar.gz
av(format|device): Add const to muxer packet data pointers
The packets given to muxers need not be writable, so it is best to access them via const uint8_t*. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/gif.c')
-rw-r--r--libavformat/gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c
index cba87d3eae..b52ff4dd39 100644
--- a/libavformat/gif.c
+++ b/libavformat/gif.c
@@ -54,7 +54,7 @@ static int gif_write_header(AVFormatContext *s)
return 0;
}
-static int gif_parse_packet(AVFormatContext *s, uint8_t *data, int size)
+static int gif_parse_packet(AVFormatContext *s, const uint8_t *data, int size)
{
GetByteContext gb;
int x;