Revision f877954f libavformat/sdp.c

View differences:

libavformat/sdp.c
211 211
                                     payload_type, config);
212 212
            break;
213 213
        case CODEC_ID_PCM_S16BE:
214
            if (payload_type >= 96)
214
            if (payload_type >= RTP_PT_PRIVATE)
215 215
                av_strlcatf(buff, size, "a=rtpmap:%d L16/%d/%d\r\n",
216 216
                                         payload_type,
217 217
                                         c->sample_rate, c->channels);
218 218
            break;
219 219
        case CODEC_ID_PCM_MULAW:
220
            if (payload_type >= 96)
220
            if (payload_type >= RTP_PT_PRIVATE)
221 221
                av_strlcatf(buff, size, "a=rtpmap:%d PCMU/%d/%d\r\n",
222 222
                                         payload_type,
223 223
                                         c->sample_rate, c->channels);
224 224
            break;
225 225
        case CODEC_ID_PCM_ALAW:
226
            if (payload_type >= 96)
226
            if (payload_type >= RTP_PT_PRIVATE)
227 227
                av_strlcatf(buff, size, "a=rtpmap:%d PCMA/%d/%d\r\n",
228 228
                                         payload_type,
229 229
                                         c->sample_rate, c->channels);
......
257 257

  
258 258
    payload_type = ff_rtp_get_payload_type(c);
259 259
    if (payload_type < 0) {
260
        payload_type = 96;  /* FIXME: how to assign a private pt? rtp.c is broken too */
260
        payload_type = RTP_PT_PRIVATE;  /* FIXME: how to assign a private pt? rtp.c is broken too */
261 261
    }
262 262

  
263 263
    switch (c->codec_type) {

Also available in: Unified diff