Revision 6399c17d libavformat/rtpenc.c

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

Also available in: Unified diff