# HG changeset patch # User lucabe # Date 1214994383 0 # Node ID 5e0191d9e71301689721fe2927b82a053d7cbfa6 # Parent e04ae2357e6659e480c24c5cd0da92858f6c2d21 Reindent after last commit diff -r e04ae2357e66 -r 5e0191d9e713 rtpdec.c --- a/rtpdec.c Wed Jul 02 10:23:27 2008 +0000 +++ b/rtpdec.c Wed Jul 02 10:26:23 2008 +0000 @@ -365,16 +365,16 @@ */ static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t timestamp) { - if (s->last_rtcp_ntp_time != AV_NOPTS_VALUE) { - int64_t addend; + if (s->last_rtcp_ntp_time != AV_NOPTS_VALUE) { + int64_t addend; + int delta_timestamp; - 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; - } + /* 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; + } pkt->stream_index = s->st->index; }