diff options
author | Stefan Huehner <stefan@huehner.org> | 2006-06-18 11:33:14 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-06-18 11:33:14 +0000 |
commit | 7b49ce2e344a5f8864d8365d57f3c6c743f0c8f7 (patch) | |
tree | 12c908af01e95ca2df7f4ca20be592871527577e /libavformat/rtsp.c | |
parent | 3b9bee88891d1c170eb42d1ef51c5cd7f19b5ba5 (diff) | |
download | ffmpeg-7b49ce2e344a5f8864d8365d57f3c6c743f0c8f7.tar.gz |
Add const to (mostly) char* and make some functions static, which aren't used
outside their declaring source file and which have no corresponding prototype.
patch by Stefan Huehner stefan^^@^^huehner^^.^^org
Originally committed as revision 5497 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 31af3c9c89..a4bd40f25a 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -145,7 +145,7 @@ static int sdp_parse_rtpmap(AVCodecContext *codec, int payload_type, const char char buf[256]; int i; AVCodec *c; - char *c_name; + const char *c_name; /* Loop into AVRtpDynamicPayloadTypes[] and AVRtpPayloadTypes[] and see if we can handle this kind of payload */ @@ -169,7 +169,7 @@ static int sdp_parse_rtpmap(AVCodecContext *codec, int payload_type, const char c = avcodec_find_decoder(codec->codec_id); if (c && c->name) - c_name = (char *)c->name; + c_name = c->name; else c_name = (char *)NULL; @@ -255,7 +255,7 @@ static void sdp_parse_fmtp_config(AVCodecContext *codec, char *attr, char *value typedef struct attrname_map { - char *str; + const char *str; uint16_t type; uint32_t offset; } attrname_map_t; |