static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t timestamp)

{

    if (s->last_rtcp_ntp_time != AV_NOPTS_VALUE) {

        int64_t addend;

        int delta_timestamp;



        /* compute pts from timestamp with received ntp_time */

        delta_timestamp = timestamp - s->last_rtcp_timestamp;

        /* convert to the PTS timebase */

        addend = av_rescale(s->last_rtcp_ntp_time - s->first_rtcp_ntp_time, s->st->time_base.den, (uint64_t)s->st->time_base.num << 32);

        pkt->pts = addend + delta_timestamp;

    }

}

static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t timestamp)

{

    if (s->last_rtcp_ntp_time != AV_NOPTS_VALUE) {

        int64_t addend;

        int delta_timestamp;



        

        delta_timestamp = timestamp - s->last_rtcp_timestamp;

        

        addend = av_rescale(s->last_rtcp_ntp_time - s->first_rtcp_ntp_time, s->st->time_base.den, (uint64_t)s->st->time_base.num << 32);

        pkt->pts = addend + delta_timestamp;

    }

}

        addend = av_rescale(s->last_rtcp_ntp_time - s->first_rtcp_ntp_time, s->st->time_base.den, (uint64_t)s->st->time_base.num << 32);
static void FUNC_0(RTPDemuxContext *VAR_0, AVPacket *VAR_1, uint32_t VAR_2)

{

    if (VAR_0->last_rtcp_ntp_time != AV_NOPTS_VALUE) {

        int64_t addend;

        int VAR_3;



        

        VAR_3 = VAR_2 - VAR_0->last_rtcp_timestamp;

        

        addend = av_rescale(VAR_0->last_rtcp_ntp_time - VAR_0->first_rtcp_ntp_time, VAR_0->st->time_base.den, (uint64_t)VAR_0->st->time_base.num << 32);

        VAR_1->pts = addend + VAR_3;

    }

}

static void FUNC_0(RTPDemuxContext *VAR_0, AVPacket *VAR_1, uint32_t VAR_2)
{ if (VAR_0->last_rtcp_ntp_time != AV_NOPTS_VALUE) { int64_t addend; int VAR_3; VAR_3 = VAR_2 - VAR_0->last_rtcp_timestamp; addend = av_rescale(VAR_0->last_rtcp_ntp_time - VAR_0->first_rtcp_ntp_time, VAR_0->st->time_base.den, (uint64_t)VAR_0->st->time_base.num << 32); VAR_1->pts = addend + VAR_3; } }