Commit 499da717 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'ac0e54fd'

* commit 'ac0e54fd':
  rtpdec: Add const to string parameters in internal fmtp parsing functions
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 1c5d9dd2 ac0e54fd
...@@ -66,7 +66,7 @@ static const uint8_t start_sequence[] = { 0, 0, 0, 1 }; ...@@ -66,7 +66,7 @@ static const uint8_t start_sequence[] = { 0, 0, 0, 1 };
static void parse_profile_level_id(AVFormatContext *s, static void parse_profile_level_id(AVFormatContext *s,
PayloadContext *h264_data, PayloadContext *h264_data,
char *value) const char *value)
{ {
char buffer[3]; char buffer[3];
// 6 characters=3 bytes, in hex. // 6 characters=3 bytes, in hex.
......
...@@ -96,7 +96,7 @@ static int latm_parse_packet(AVFormatContext *ctx, PayloadContext *data, ...@@ -96,7 +96,7 @@ static int latm_parse_packet(AVFormatContext *ctx, PayloadContext *data,
return data->pos < data->len; 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; int len = ff_hex_to_data(NULL, value), i, ret = 0;
GetBitContext gb; GetBitContext gb;
......
...@@ -98,7 +98,7 @@ static void free_context(PayloadContext *data) ...@@ -98,7 +98,7 @@ static void free_context(PayloadContext *data)
av_freep(&data); av_freep(&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 */ /* decode the hexa encoded parameter */
int len = ff_hex_to_data(NULL, value); int len = ff_hex_to_data(NULL, value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment