summaryrefslogtreecommitdiff
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@savoirfairelinux.com>2011-09-23 15:47:56 -0400
committerLuca Barbato <lu_zero@gentoo.org>2011-09-23 22:00:24 +0200
commit0c378ea1f76e226eff460c84634e7227e3705372 (patch)
tree312898a1f9dccd4248e7156a30aeca45b5030f44 /libavformat/sdp.c
parentbafff1668c6bc4d1cb3b7e4b9dac85b8b52e4765 (diff)
rtp: factorize dynamic payload type fallback
Move the identical code in rtp_write_header() and ff_sdp_write_media() inside ff_rtp_get_payload_type() Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index c227c7f603..f27a89936c 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -533,9 +533,6 @@ void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *des
int payload_type;
payload_type = ff_rtp_get_payload_type(c);
- if (payload_type < 0) {
- payload_type = RTP_PT_PRIVATE + (c->codec_type == AVMEDIA_TYPE_AUDIO);
- }
switch (c->codec_type) {
case AVMEDIA_TYPE_VIDEO : type = "video" ; break;