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

{

    const uint8_t *r, *end = buf1 + size;

    RTPMuxContext *s = s1->priv_data;



    s->timestamp = s->cur_timestamp;

    s->buf_ptr   = s->buf;

    if (s->nal_length_size)

        r = ff_avc_mp4_find_startcode(buf1, end, s->nal_length_size) ? buf1 : end;

    else

        r = ff_avc_find_startcode(buf1, end);

    while (r < end) {

        const uint8_t *r1;



        if (s->nal_length_size) {

            r1 = ff_avc_mp4_find_startcode(r, end, s->nal_length_size);

            if (!r1)

                r1 = end;

            r += s->nal_length_size;

        } else {

            while (!*(r++));

            r1 = ff_avc_find_startcode(r, end);

        }

        nal_send(s1, r, r1 - r, r1 == end);

        r = r1;

    }

    flush_buffered(s1, 1);

}

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

{

    const uint8_t *r, *end = buf1 + size;

    RTPMuxContext *s = s1->priv_data;



    s->timestamp = s->cur_timestamp;

    s->buf_ptr   = s->buf;

    if (s->nal_length_size)

        r = ff_avc_mp4_find_startcode(buf1, end, s->nal_length_size) ? buf1 : end;

    else

        r = ff_avc_find_startcode(buf1, end);

    while (r < end) {

        const uint8_t *r1;



        if (s->nal_length_size) {

            r1 = ff_avc_mp4_find_startcode(r, end, s->nal_length_size);

            if (!r1)

                r1 = end;

            r += s->nal_length_size;

        } else {

            while (!*(r++));

            r1 = ff_avc_find_startcode(r, end);

        }

        nal_send(s1, r, r1 - r, r1 == end);

        r = r1;

    }

    flush_buffered(s1, 1);

}

    RTPMuxContext *s = s1->priv_data;     RTPMuxContext *s = s1->priv_data;         } else { void ff_rtp_send_h264(AVFormatContext *s1, const uint8_t *buf1, int size)     const uint8_t *r, *end = buf1 + size;     RTPMuxContext *s = s1->priv_data;     s->timestamp = s->cur_timestamp;     s->buf_ptr   = s->buf;     if (s->nal_length_size)         r = ff_avc_mp4_find_startcode(buf1, end, s->nal_length_size) ? buf1 : end;         r = ff_avc_find_startcode(buf1, end);     while (r < end) {         const uint8_t *r1;         if (s->nal_length_size) {             r1 = ff_avc_mp4_find_startcode(r, end, s->nal_length_size);             if (!r1)                 r1 = end;             r += s->nal_length_size;         } else {             while (!*(r++));             r1 = ff_avc_find_startcode(r, end);         nal_send(s1, r, r1 - r, r1 == end);         r = r1;     flush_buffered(s1, 1);     RTPMuxContext *s = s1->priv_data;         } else {         } else {
void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)

{

    const uint8_t *VAR_3, *end = VAR_1 + VAR_2;

    RTPMuxContext *s = VAR_0->priv_data;



    s->timestamp = s->cur_timestamp;

    s->buf_ptr   = s->buf;

    if (s->nal_length_size)

        VAR_3 = ff_avc_mp4_find_startcode(VAR_1, end, s->nal_length_size) ? VAR_1 : end;

    else

        VAR_3 = ff_avc_find_startcode(VAR_1, end);

    while (VAR_3 < end) {

        const uint8_t *VAR_4;



        if (s->nal_length_size) {

            VAR_4 = ff_avc_mp4_find_startcode(VAR_3, end, s->nal_length_size);

            if (!VAR_4)

                VAR_4 = end;

            VAR_3 += s->nal_length_size;

        } else {

            while (!*(VAR_3++));

            VAR_4 = ff_avc_find_startcode(VAR_3, end);

        }

        nal_send(VAR_0, VAR_3, VAR_4 - VAR_3, VAR_4 == end);

        VAR_3 = VAR_4;

    }

    flush_buffered(VAR_0, 1);

}

void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{ const uint8_t *VAR_3, *end = VAR_1 + VAR_2; RTPMuxContext *s = VAR_0->priv_data; s->timestamp = s->cur_timestamp; s->buf_ptr   = s->buf; if (s->nal_length_size)
VAR_3 = ff_avc_mp4_find_startcode(VAR_1, end, s->nal_length_size) ? VAR_1 : end; else
VAR_3 = ff_avc_find_startcode(VAR_1, end); while (VAR_3 < end) { const uint8_t *VAR_4; if (s->nal_length_size) { VAR_4 = ff_avc_mp4_find_startcode(VAR_3, end, s->nal_length_size); if (!VAR_4)
VAR_4 = end; VAR_3 += s->nal_length_size; } else { while (!*(VAR_3++)); VAR_4 = ff_avc_find_startcode(VAR_3, end); } nal_send(VAR_0, VAR_3, VAR_4 - VAR_3, VAR_4 == end); VAR_3 = VAR_4; } flush_buffered(VAR_0, 1); }