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>
pull/333/head
Andreas Rheinhardt 5 years ago committed by Michael Niedermayer
parent ed5cdf3d5a
commit df912bbc5f
  1. 2
      libavformat/flacenc.h
  2. 2
      libavformat/flacenc_header.c

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

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

Loading…
Cancel
Save