aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/adtsenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-22 18:47:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-22 18:47:14 +0200
commitd902a3f4cb97a3ef93a5ec6ce80ba098476490a0 (patch)
tree75187a42a78b3454ebb5fdcec15011464cb634e6 /libavformat/adtsenc.c
parent544380aaf0da3c01877c887bde1fa740cacb4a9d (diff)
downloadffmpeg-d902a3f4cb97a3ef93a5ec6ce80ba098476490a0.tar.gz
avformat/adtsenc: buf isnt changed in adts_decode_extradata(), make it const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/adtsenc.c')
-rw-r--r--libavformat/adtsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c
index d624b79607..89c8869d35 100644
--- a/libavformat/adtsenc.c
+++ b/libavformat/adtsenc.c
@@ -45,7 +45,7 @@ typedef struct {
#define ADTS_MAX_FRAME_BYTES ((1 << 13) - 1)
-static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf, int size)
+static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size)
{
GetBitContext gb;
PutBitContext pb;