diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-11-27 08:48:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-28 18:44:01 +0100 |
commit | df912bbc5f9cffa56341382a92aff739755f6d60 (patch) | |
tree | ef1edef49685788c88485c276c959edf14e950cc /libavformat | |
parent | ed5cdf3d5a7eae4e9f399520989c157cfb50fa51 (diff) | |
download | ffmpeg-df912bbc5f9cffa56341382a92aff739755f6d60.tar.gz |
avformat/flacenc: Add const to ff_flac_write_header() parameter
The extradata is not changed at all.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flacenc.h | 2 | ||||
-rw-r--r-- | libavformat/flacenc_header.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/flacenc.h b/libavformat/flacenc.h index d5d53a5dcb..b308d0d021 100644 --- a/libavformat/flacenc.h +++ b/libavformat/flacenc.h @@ -26,7 +26,7 @@ #include "libavcodec/bytestream.h" #include "avformat.h" -int ff_flac_write_header(AVIOContext *pb, uint8_t *extradata, +int ff_flac_write_header(AVIOContext *pb, const uint8_t *extradata, int extradata_size, int last_block); int ff_flac_is_native_layout(uint64_t channel_layout); diff --git a/libavformat/flacenc_header.c b/libavformat/flacenc_header.c index 61833cc8b9..aba22a59d8 100644 --- a/libavformat/flacenc_header.c +++ b/libavformat/flacenc_header.c @@ -26,7 +26,7 @@ #include "avformat.h" #include "flacenc.h" -int ff_flac_write_header(AVIOContext *pb, uint8_t *extradata, +int ff_flac_write_header(AVIOContext *pb, const uint8_t *extradata, int extradata_size, int last_block) { uint8_t header[8] = { |