Mercurial > libavformat.hg
diff sdp.c @ 5476:770a7de45356 libavformat
Use different dynamic payload types for audio and video.
author | lucabe |
---|---|
date | Sun, 27 Dec 2009 21:31:10 +0000 |
parents | ff40a9607f5b |
children | fc0a32a383d3 |
line wrap: on
line diff
--- a/sdp.c Sun Dec 27 08:21:40 2009 +0000 +++ b/sdp.c Sun Dec 27 21:31:10 2009 +0000 @@ -257,7 +257,7 @@ 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) {