diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-24 13:31:23 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-25 00:07:18 +0300 |
commit | ac0e54fda9305cc7d149007f5b512bb8619f7c78 (patch) | |
tree | 0642631c52d0bdbf66b18a66bb4eb68bee4a7f4c /libavformat | |
parent | 12251f997bbc0abb93be39c51021e6d404ca385f (diff) |
rtpdec: Add const to string parameters in internal fmtp parsing functions
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpdec_h264.c | 2 | ||||
-rw-r--r-- | libavformat/rtpdec_latm.c | 2 | ||||
-rw-r--r-- | libavformat/rtpdec_mpeg4.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index e624cc962e..e79ac40189 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -66,7 +66,7 @@ static const uint8_t start_sequence[] = { 0, 0, 0, 1 }; static void parse_profile_level_id(AVFormatContext *s, PayloadContext *h264_data, - char *value) + const char *value) { char buffer[3]; // 6 characters=3 bytes, in hex. diff --git a/libavformat/rtpdec_latm.c b/libavformat/rtpdec_latm.c index 2da0fbfbe0..813f41b2a2 100644 --- a/libavformat/rtpdec_latm.c +++ b/libavformat/rtpdec_latm.c @@ -96,7 +96,7 @@ static int latm_parse_packet(AVFormatContext *ctx, PayloadContext *data, return data->pos < data->len; } -static int parse_fmtp_config(AVStream *st, char *value) +static int parse_fmtp_config(AVStream *st, const char *value) { int len = ff_hex_to_data(NULL, value), i, ret = 0; GetBitContext gb; diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c index 4a0593b540..fe6b440011 100644 --- a/libavformat/rtpdec_mpeg4.c +++ b/libavformat/rtpdec_mpeg4.c @@ -98,7 +98,7 @@ static void free_context(PayloadContext *data) av_free(data); } -static int parse_fmtp_config(AVCodecContext *codec, char *value) +static int parse_fmtp_config(AVCodecContext *codec, const char *value) { /* decode the hexa encoded parameter */ int len = ff_hex_to_data(NULL, value); |