rtp_send_data(s1, s->buf, n);
rtp_send_data(s1, s->buf, n, 0);
static void rtp_send_samples(AVFormatContext *s1,                             const uint8_t *buf1, int size, int sample_size){    RTPDemuxContext *s = s1->priv_data;    int len, max_packet_size, n;    max_packet_size = (s->max_payload_size / sample_size) * sample_size;    /* not needed, but who nows */    if ((size % sample_size) != 0)        av_abort();    while (size > 0) {        len = (max_packet_size - (s->buf_ptr - s->buf));        if (len > size)            len = size;        /* copy data */        memcpy(s->buf_ptr, buf1, len);        s->buf_ptr += len;        buf1 += len;        size -= len;        n = (s->buf_ptr - s->buf);        /* if buffer full, then send it */        if (n >= max_packet_size) {            rtp_send_data(s1, s->buf, n);            s->buf_ptr = s->buf;            /* update timestamp */            s->timestamp += n / sample_size;        }    }} 