aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2009-12-27 21:31:10 +0000
committerLuca Abeni <lucabe72@email.it>2009-12-27 21:31:10 +0000
commit6399c17d545e9666e3eece87b136d0107a900c5d (patch)
treeb9d9dd68e81b48446e387a84652bda6b6dee365f /libavformat/sdp.c
parentbac24dd2a5a34befd4c310944647cfcadd7a8ae6 (diff)
downloadffmpeg-6399c17d545e9666e3eece87b136d0107a900c5d.tar.gz
Use different dynamic payload types for audio and video.
Originally committed as revision 20940 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 0a286417e1..2d42572589 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -257,7 +257,7 @@ static void sdp_write_media(char *buff, int size, AVCodecContext *c, const char
payload_type = ff_rtp_get_payload_type(c);
if (payload_type < 0) {
- payload_type = RTP_PT_PRIVATE; /* FIXME: how to assign a private pt? rtp.c is broken too */
+ payload_type = RTP_PT_PRIVATE + (c->codec_type == CODEC_TYPE_AUDIO);
}
switch (c->codec_type) {