[02/12] rtpdec: Add const to string parameters in internal fmtp parsing functions

Message ID 1424795718-79013-2-git-send-email-martin@martin.st
State Committed
Commit ac0e54fda9305cc7d149007f5b512bb8619f7c78
Headers show

Commit Message

Martin Storsjö Feb. 24, 2015, 4:35 p.m.
---
 libavformat/rtpdec_h264.c  | 2 +-
 libavformat/rtpdec_latm.c  | 2 +-
 libavformat/rtpdec_mpeg4.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Comments

Luca Barbato Feb. 24, 2015, 5:18 p.m. | #1
On 24/02/15 17:35, Martin Storsjö wrote:
> ---
>  libavformat/rtpdec_h264.c  | 2 +-
>  libavformat/rtpdec_latm.c  | 2 +-
>  libavformat/rtpdec_mpeg4.c | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 

Ok.

Patch

diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index e624cc9..e79ac40 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 2da0fbf..813f41b 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 4a0593b..fe6b440 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);