comparison rtpdec.c @ 3535:5e0191d9e713 libavformat

Reindent after last commit
author lucabe
date Wed, 02 Jul 2008 10:26:23 +0000
parents e04ae2357e66
children e6a42f4e5429
comparison
equal deleted inserted replaced
3534:e04ae2357e66 3535:5e0191d9e713
363 /** 363 /**
364 * This was the second switch in rtp_parse packet. Normalizes time, if required, sets stream_index, etc. 364 * This was the second switch in rtp_parse packet. Normalizes time, if required, sets stream_index, etc.
365 */ 365 */
366 static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t timestamp) 366 static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t timestamp)
367 { 367 {
368 if (s->last_rtcp_ntp_time != AV_NOPTS_VALUE) { 368 if (s->last_rtcp_ntp_time != AV_NOPTS_VALUE) {
369 int64_t addend; 369 int64_t addend;
370 370 int delta_timestamp;
371 int delta_timestamp; 371
372 /* compute pts from timestamp with received ntp_time */ 372 /* compute pts from timestamp with received ntp_time */
373 delta_timestamp = timestamp - s->last_rtcp_timestamp; 373 delta_timestamp = timestamp - s->last_rtcp_timestamp;
374 /* convert to the PTS timebase */ 374 /* convert to the PTS timebase */
375 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); 375 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);
376 pkt->pts = addend + delta_timestamp; 376 pkt->pts = addend + delta_timestamp;
377 } 377 }
378 pkt->stream_index = s->st->index; 378 pkt->stream_index = s->st->index;
379 } 379 }
380 380
381 /** 381 /**
382 * Parse an RTP or RTCP packet directly sent as a buffer. 382 * Parse an RTP or RTCP packet directly sent as a buffer.