Revision 6399c17d

View differences:

libavformat/rtpenc.c
85 85

  
86 86
    payload_type = ff_rtp_get_payload_type(st->codec);
87 87
    if (payload_type < 0)
88
        payload_type = RTP_PT_PRIVATE; /* private payload type */
88
        payload_type = RTP_PT_PRIVATE + (st->codec->codec_type == CODEC_TYPE_AUDIO);
89 89
    s->payload_type = payload_type;
90 90

  
91 91
// following 2 FIXMEs could be set based on the current time, there is normally no info leak, as RTP will likely be transmitted immediately
libavformat/sdp.c
257 257

  
258 258
    payload_type = ff_rtp_get_payload_type(c);
259 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 263
    switch (c->codec_type) {

Also available in: Unified diff