Revision e8420626

View differences:

libavformat/rtpdec.c
250 250
    len = url_close_dyn_buf(pb, &buf);
251 251
    if ((len > 0) && buf) {
252 252
        int result;
253
#if defined(DEBUG)
254
        printf("sending %d bytes of RR\n", len);
255
#endif
253
        dprintf(s->ic, "sending %d bytes of RR\n", len);
256 254
        result= url_write(s->rtp_ctx, buf, len);
257
#if defined(DEBUG)
258
        printf("result from url_write: %d\n", result);
259
#endif
255
        dprintf(s->ic, "result from url_write: %d\n", result);
260 256
        av_free(buf);
261 257
    }
262 258
    return 0;
libavformat/rtpenc.c
120 120
    RTPDemuxContext *s = s1->priv_data;
121 121
    uint32_t rtp_ts;
122 122

  
123
#if defined(DEBUG)
124
    printf("RTCP: %02x %"PRIx64" %x\n", s->payload_type, ntp_time, s->timestamp);
125
#endif
123
    dprintf(s1, "RTCP: %02x %"PRIx64" %x\n", s->payload_type, ntp_time, s->timestamp);
126 124

  
127 125
    if (s->first_rtcp_ntp_time == AV_NOPTS_VALUE) s->first_rtcp_ntp_time = ntp_time;
128 126
    s->last_rtcp_ntp_time = ntp_time;
......
146 144
{
147 145
    RTPDemuxContext *s = s1->priv_data;
148 146

  
149
#ifdef DEBUG
150
    printf("rtp_send_data size=%d\n", len);
151
#endif
147
    dprintf(s1, "rtp_send_data size=%d\n", len);
152 148

  
153 149
    /* build the RTP header */
154 150
    put_byte(s1->pb, (RTP_VERSION << 6));
......
301 297
    int size= pkt->size;
302 298
    uint8_t *buf1= pkt->data;
303 299

  
304
#ifdef DEBUG
305
    printf("%d: write len=%d\n", pkt->stream_index, size);
306
#endif
300
    dprintf(s1, "%d: write len=%d\n", pkt->stream_index, size);
307 301

  
308 302
    rtcp_bytes = ((s->octet_count - s->last_octet_count) * RTCP_TX_RATIO_NUM) /
309 303
        RTCP_TX_RATIO_DEN;

Also available in: Unified diff