avformat/flacenc: Add const to ff_flac_write_header() parameter
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 27 Nov 2019 07:48:56 +0000 (08:48 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 28 Nov 2019 17:44:01 +0000 (18:44 +0100)
The extradata is not changed at all.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/flacenc.h
libavformat/flacenc_header.c

index d5d53a5..b308d0d 100644 (file)
@@ -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);
index 61833cc..aba22a5 100644 (file)
@@ -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] = {