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 /libavdevice/sndio_enc.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 'libavdevice/sndio_enc.c')
-rw-r--r-- | libavdevice/sndio_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/sndio_enc.c b/libavdevice/sndio_enc.c index a595438d8a..0cf58fdc6a 100644 --- a/libavdevice/sndio_enc.c +++ b/libavdevice/sndio_enc.c @@ -46,7 +46,7 @@ static av_cold int audio_write_header(AVFormatContext *s1) static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt) { SndioData *s = s1->priv_data; - uint8_t *buf= pkt->data; + const uint8_t *buf = pkt->data; int size = pkt->size; int len, ret; |