diff options
author | Luca Abeni <lucabe72@email.it> | 2008-07-02 10:26:23 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2008-07-02 10:26:23 +0000 |
commit | fba7815d8d8b122c7e3cdef83df642b83cfce292 (patch) | |
tree | b9155bb3228a88a5bfcf554b3f9f4eafd2a4558d /libavformat/rtpdec.c | |
parent | d6b9e57af2f45fe3f1c76c3ebd4059a3239c3e17 (diff) | |
download | ffmpeg-fba7815d8d8b122c7e3cdef83df642b83cfce292.tar.gz |
Reindent after last commit
Originally committed as revision 14046 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r-- | libavformat/rtpdec.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 3fa1a4afb3..608612b875 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -365,16 +365,16 @@ static int rtp_parse_mp4_au(RTPDemuxContext *s, const uint8_t *buf) */ 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; - } + 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; + } pkt->stream_index = s->st->index; } |