diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dvenc.c | 2 | ||||
-rw-r--r-- | libavformat/gif.c | 2 | ||||
-rw-r--r-- | libavformat/movenc.h | 2 | ||||
-rw-r--r-- | libavformat/movenchint.c | 2 | ||||
-rw-r--r-- | libavformat/mxfenc.c | 2 | ||||
-rw-r--r-- | libavformat/oggenc.c | 4 | ||||
-rw-r--r-- | libavformat/spdifenc.c | 4 | ||||
-rw-r--r-- | libavformat/swfenc.c | 4 |
8 files changed, 11 insertions, 11 deletions
diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c index 1917c00694..7ef9692302 100644 --- a/libavformat/dvenc.c +++ b/libavformat/dvenc.c @@ -245,7 +245,7 @@ static void dv_inject_metadata(DVMuxContext *c, uint8_t* frame) static int dv_assemble_frame(AVFormatContext *s, DVMuxContext *c, AVStream* st, - uint8_t* data, int data_size, uint8_t** frame) + const uint8_t *data, int data_size, uint8_t **frame) { int i, reqasize; diff --git a/libavformat/gif.c b/libavformat/gif.c index cba87d3eae..b52ff4dd39 100644 --- a/libavformat/gif.c +++ b/libavformat/gif.c @@ -54,7 +54,7 @@ static int gif_write_header(AVFormatContext *s) return 0; } -static int gif_parse_packet(AVFormatContext *s, uint8_t *data, int size) +static int gif_parse_packet(AVFormatContext *s, const uint8_t *data, int size) { GetByteContext gb; int x; diff --git a/libavformat/movenc.h b/libavformat/movenc.h index e4550f7900..c6b3313deb 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -62,7 +62,7 @@ typedef struct MOVIentry { } MOVIentry; typedef struct HintSample { - uint8_t *data; + const uint8_t *data; int size; int sample_number; int offset; diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c index aaaaa3ac7b..0169341189 100644 --- a/libavformat/movenchint.c +++ b/libavformat/movenchint.c @@ -96,7 +96,7 @@ static void sample_queue_free(HintSampleQueue *queue) * not copied. sample_queue_retain should be called before pkt->data * is reused/freed. */ -static void sample_queue_push(HintSampleQueue *queue, uint8_t *data, int size, +static void sample_queue_push(HintSampleQueue *queue, const uint8_t *data, int size, int sample) { /* No need to keep track of smaller samples, since describing them diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 2d08dd6d40..9a9acbfa08 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -2139,7 +2139,7 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt) { MXFContext *mxf = s->priv_data; MXFStreamContext *sc = st->priv_data; - uint8_t *vs_pack, *vsc_pack; + const uint8_t *vs_pack, *vsc_pack; int apt, ul_index, stype, pal; if (mxf->header_written) diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index 016047f616..ae0705ba54 100644 --- a/libavformat/oggenc.c +++ b/libavformat/oggenc.c @@ -197,13 +197,13 @@ static int ogg_buffer_page(AVFormatContext *s, OGGStreamContext *oggstream) } static int ogg_buffer_data(AVFormatContext *s, AVStream *st, - uint8_t *data, unsigned size, int64_t granule, + const uint8_t *data, unsigned size, int64_t granule, int header) { OGGStreamContext *oggstream = st->priv_data; OGGContext *ogg = s->priv_data; int total_segments = size / 255 + 1; - uint8_t *p = data; + const uint8_t *p = data; int i, segments, len, flush = 0; // Handles VFR by flushing page because this frame needs to have a timestamp diff --git a/libavformat/spdifenc.c b/libavformat/spdifenc.c index 0a634e4232..7b8e231cff 100644 --- a/libavformat/spdifenc.c +++ b/libavformat/spdifenc.c @@ -63,7 +63,7 @@ typedef struct IEC61937Context { uint8_t *buffer; ///< allocated buffer, used for swap bytes int buffer_size; ///< size of allocated buffer - uint8_t *out_buf; ///< pointer to the outgoing data before byte-swapping + const uint8_t *out_buf; ///< pointer to the outgoing data before byte-swapping int out_bytes; ///< amount of outgoing bytes int use_preamble; ///< preamble enabled (disabled for exactly pre-padded DTS) @@ -657,7 +657,7 @@ static int spdif_write_packet(struct AVFormatContext *s, AVPacket *pkt) av_fast_malloc(&ctx->buffer, &ctx->buffer_size, ctx->out_bytes + AV_INPUT_BUFFER_PADDING_SIZE); if (!ctx->buffer) return AVERROR(ENOMEM); - ff_spdif_bswap_buf16((uint16_t *)ctx->buffer, (uint16_t *)ctx->out_buf, ctx->out_bytes >> 1); + ff_spdif_bswap_buf16((uint16_t *)ctx->buffer, (const uint16_t *)ctx->out_buf, ctx->out_bytes >> 1); avio_write(s->pb, ctx->buffer, ctx->out_bytes & ~1); } diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c index 2c8c034c42..75b892087f 100644 --- a/libavformat/swfenc.c +++ b/libavformat/swfenc.c @@ -481,8 +481,8 @@ static int swf_write_video(AVFormatContext *s, return 0; } -static int swf_write_audio(AVFormatContext *s, - AVCodecParameters *par, uint8_t *buf, int size) +static int swf_write_audio(AVFormatContext *s, AVCodecParameters *par, + const uint8_t *buf, int size) { SWFEncContext *swf = s->priv_data; |