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>
This commit is contained in:
Andreas Rheinhardt 2019-11-27 08:48:56 +01:00 committed by Michael Niedermayer
parent ed5cdf3d5a
commit df912bbc5f
2 changed files with 2 additions and 2 deletions

View 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);

View 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] = {