[FFmpeg-cvslog] r24235 - trunk/libavformat/rtpdec_svq3.c

mstorsjo subversion
Wed Jul 14 14:27:26 CEST 2010


Author: mstorsjo
Date: Wed Jul 14 14:27:26 2010
New Revision: 24235

Log:
rtpdec_svq3: Return the timestamp in *timestamp instead of pkt->pts

The timestamp of the first RTP packet forming the output AVPacket is
written back in *timestamp, which is used in later calculations in generic
rtpdec code (together with RTCP sync timestamps) to form the final pkt->pts
value.

Modified:
   trunk/libavformat/rtpdec_svq3.c

Modified: trunk/libavformat/rtpdec_svq3.c
==============================================================================
--- trunk/libavformat/rtpdec_svq3.c	Wed Jul 14 14:26:16 2010	(r24234)
+++ trunk/libavformat/rtpdec_svq3.c	Wed Jul 14 14:27:26 2010	(r24235)
@@ -101,7 +101,7 @@ static int svq3_parse_packet (AVFormatCo
     if (end_packet) {
         av_init_packet(pkt);
         pkt->stream_index = st->index;
-        pkt->pts          = sv->timestamp;
+        *timestamp        = sv->timestamp;
         pkt->flags        = sv->is_keyframe ? AV_PKT_FLAG_KEY : 0;
         pkt->size         = url_close_dyn_buf(sv->pktbuf, &pkt->data);
         pkt->destruct     = av_destruct_packet;



More information about the ffmpeg-cvslog mailing list