void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size)

{

    RTPMuxContext *s = s1->priv_data;

    int len, max_packet_size;

    uint8_t *q;



    max_packet_size = s->max_payload_size;



    while (size > 0) {

        q = s->buf;

        if ((buf1[0] == 0) && (buf1[1] == 0)) {

            *q++ = 0x04;

            buf1 += 2;

            size -= 2;

        } else {

            *q++ = 0;

        }

        *q++ = 0;



        len = FFMIN(max_packet_size - 2, size);



        /* Look for a better place to split the frame into packets. */

        if (len < size) {

            const uint8_t *end = find_resync_marker_reverse(buf1, buf1 + len);

            len = end - buf1;

        }



        memcpy(q, buf1, len);

        q += len;



        /* 90 KHz time stamp */

        s->timestamp = s->cur_timestamp;

        ff_rtp_send_data(s1, s->buf, q - s->buf, (len == size));



        buf1 += len;

        size -= len;

    }

}

void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size)

{

    RTPMuxContext *s = s1->priv_data;

    int len, max_packet_size;

    uint8_t *q;



    max_packet_size = s->max_payload_size;



    while (size > 0) {

        q = s->buf;

        if ((buf1[0] == 0) && (buf1[1] == 0)) {

            *q++ = 0x04;

            buf1 += 2;

            size -= 2;

        } else {

            *q++ = 0;

        }

        *q++ = 0;



        len = FFMIN(max_packet_size - 2, size);



        

        if (len < size) {

            const uint8_t *end = find_resync_marker_reverse(buf1, buf1 + len);

            len = end - buf1;

        }



        memcpy(q, buf1, len);

        q += len;



        

        s->timestamp = s->cur_timestamp;

        ff_rtp_send_data(s1, s->buf, q - s->buf, (len == size));



        buf1 += len;

        size -= len;

    }

}

        if ((buf1[0] == 0) && (buf1[1] == 0)) {
void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)

{

    RTPMuxContext *s = VAR_0->priv_data;

    int VAR_3, VAR_4;

    uint8_t *q;



    VAR_4 = s->max_payload_size;



    while (VAR_2 > 0) {

        q = s->buf;

        if ((VAR_1[0] == 0) && (VAR_1[1] == 0)) {

            *q++ = 0x04;

            VAR_1 += 2;

            VAR_2 -= 2;

        } else {

            *q++ = 0;

        }

        *q++ = 0;



        VAR_3 = FFMIN(VAR_4 - 2, VAR_2);



        

        if (VAR_3 < VAR_2) {

            const uint8_t *VAR_5 = find_resync_marker_reverse(VAR_1, VAR_1 + VAR_3);

            VAR_3 = VAR_5 - VAR_1;

        }



        memcpy(q, VAR_1, VAR_3);

        q += VAR_3;



        

        s->timestamp = s->cur_timestamp;

        ff_rtp_send_data(VAR_0, s->buf, q - s->buf, (VAR_3 == VAR_2));



        VAR_1 += VAR_3;

        VAR_2 -= VAR_3;

    }

}

void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{ RTPMuxContext *s = VAR_0->priv_data; int VAR_3, VAR_4; uint8_t *q; VAR_4 = s->max_payload_size; while (VAR_2 > 0) { q = s->buf; if ((VAR_1[0] == 0) && (VAR_1[1] == 0)) { *q++ = 0x04; VAR_1 += 2; VAR_2 -= 2; } else { *q++ = 0; } *q++ = 0; VAR_3 = FFMIN(VAR_4 - 2, VAR_2); if (VAR_3 < VAR_2) { const uint8_t *VAR_5 = find_resync_marker_reverse(VAR_1, VAR_1 + VAR_3); VAR_3 = VAR_5 - VAR_1; } memcpy(q, VAR_1, VAR_3); q += VAR_3; s->timestamp = s->cur_timestamp; ff_rtp_send_data(VAR_0, s->buf, q - s->buf, (VAR_3 == VAR_2)); VAR_1 += VAR_3; VAR_2 -= VAR_3; } }