Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
5475:c47a84f46ae2 | 5476:770a7de45356 |
---|---|
255 const char *type; | 255 const char *type; |
256 int payload_type; | 256 int payload_type; |
257 | 257 |
258 payload_type = ff_rtp_get_payload_type(c); | 258 payload_type = ff_rtp_get_payload_type(c); |
259 if (payload_type < 0) { | 259 if (payload_type < 0) { |
260 payload_type = RTP_PT_PRIVATE; /* FIXME: how to assign a private pt? rtp.c is broken too */ | 260 payload_type = RTP_PT_PRIVATE + (c->codec_type == CODEC_TYPE_AUDIO); |
261 } | 261 } |
262 | 262 |
263 switch (c->codec_type) { | 263 switch (c->codec_type) { |
264 case CODEC_TYPE_VIDEO : type = "video" ; break; | 264 case CODEC_TYPE_VIDEO : type = "video" ; break; |
265 case CODEC_TYPE_AUDIO : type = "audio" ; break; | 265 case CODEC_TYPE_AUDIO : type = "audio" ; break; |