diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-04 18:08:14 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-09 19:37:53 +0200 |
commit | d5a0eba8a2481711e708442bcc1d14bf16e9d20b (patch) | |
tree | 56a13a62e6bd34e5a446f7d7a45dcc3ee6d246ba /libavformat/swfenc.c | |
parent | 417554bdd6da58ec473096494618a22f7ac49b11 (diff) | |
download | ffmpeg-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/swfenc.c')
-rw-r--r-- | libavformat/swfenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c index 2c8c034c42..75b892087f 100644 --- a/libavformat/swfenc.c +++ b/libavformat/swfenc.c @@ -481,8 +481,8 @@ static int swf_write_video(AVFormatContext *s, return 0; } -static int swf_write_audio(AVFormatContext *s, - AVCodecParameters *par, uint8_t *buf, int size) +static int swf_write_audio(AVFormatContext *s, AVCodecParameters *par, + const uint8_t *buf, int size) { SWFEncContext *swf = s->priv_data; |