Rename rtp_get_payload_type() to ff_rtp_get_payload_type(), as it is not
authorLuca Abeni <lucabe72@email.it>
Mon, 16 Feb 2009 09:36:21 +0000 (09:36 +0000)
committerLuca Abeni <lucabe72@email.it>
Mon, 16 Feb 2009 09:36:21 +0000 (09:36 +0000)
a static function

Originally committed as revision 17364 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtp.c
libavformat/rtp.h
libavformat/rtpenc.c
libavformat/sdp.c

index d284f63..94fc273 100644 (file)
@@ -93,7 +93,7 @@ int rtp_get_codec_info(AVCodecContext *codec, int payload_type)
     return -1;
 }
 
-int rtp_get_payload_type(AVCodecContext *codec)
+int ff_rtp_get_payload_type(AVCodecContext *codec)
 {
     int i, payload_type;
 
index 6a19225..1347045 100644 (file)
@@ -24,7 +24,7 @@
 #include "libavcodec/avcodec.h"
 
 /** return < 0 if unknown payload type */
-int rtp_get_payload_type(AVCodecContext *codec);
+int ff_rtp_get_payload_type(AVCodecContext *codec);
 
 #define RTP_PT_PRIVATE 96
 #define RTP_VERSION 2
index 0e129ac..3563cbe 100644 (file)
@@ -49,7 +49,7 @@ static int rtp_write_header(AVFormatContext *s1)
         return -1;
     st = s1->streams[0];
 
-    payload_type = rtp_get_payload_type(st->codec);
+    payload_type = ff_rtp_get_payload_type(st->codec);
     if (payload_type < 0)
         payload_type = RTP_PT_PRIVATE; /* private payload type */
     s->payload_type = payload_type;
index 29090b1..d5312c4 100644 (file)
@@ -233,7 +233,7 @@ static void sdp_write_media(char *buff, int size, AVCodecContext *c, const char
     const char *type;
     int payload_type;
 
-    payload_type = rtp_get_payload_type(c);
+    payload_type = ff_rtp_get_payload_type(c);
     if (payload_type < 0) {
         payload_type = 96;  /* FIXME: how to assign a private pt? rtp.c is broken too */
     }