Commit a3da74d0 authored by lucabe's avatar lucabe

Rename rtp_get_payload_type() to ff_rtp_get_payload_type(), as it is not

a static function


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17364 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 940565c6
...@@ -93,7 +93,7 @@ int rtp_get_codec_info(AVCodecContext *codec, int payload_type) ...@@ -93,7 +93,7 @@ int rtp_get_codec_info(AVCodecContext *codec, int payload_type)
return -1; return -1;
} }
int rtp_get_payload_type(AVCodecContext *codec) int ff_rtp_get_payload_type(AVCodecContext *codec)
{ {
int i, payload_type; int i, payload_type;
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "libavcodec/avcodec.h" #include "libavcodec/avcodec.h"
/** return < 0 if unknown payload type */ /** 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_PT_PRIVATE 96
#define RTP_VERSION 2 #define RTP_VERSION 2
......
...@@ -49,7 +49,7 @@ static int rtp_write_header(AVFormatContext *s1) ...@@ -49,7 +49,7 @@ static int rtp_write_header(AVFormatContext *s1)
return -1; return -1;
st = s1->streams[0]; 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) if (payload_type < 0)
payload_type = RTP_PT_PRIVATE; /* private payload type */ payload_type = RTP_PT_PRIVATE; /* private payload type */
s->payload_type = payload_type; s->payload_type = payload_type;
......
...@@ -233,7 +233,7 @@ static void sdp_write_media(char *buff, int size, AVCodecContext *c, const char ...@@ -233,7 +233,7 @@ static void sdp_write_media(char *buff, int size, AVCodecContext *c, const char
const char *type; const char *type;
int payload_type; int payload_type;
payload_type = rtp_get_payload_type(c); payload_type = ff_rtp_get_payload_type(c);
if (payload_type < 0) { if (payload_type < 0) {
payload_type = 96; /* FIXME: how to assign a private pt? rtp.c is broken too */ payload_type = 96; /* FIXME: how to assign a private pt? rtp.c is broken too */
} }
......
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