Browse code

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.

Originally committed as revision 24235 to svn://svn.ffmpeg.org/ffmpeg/trunk

Martin Storsjö authored on 2010/07/14 21:27:26
Showing 1 changed files
... ...
@@ -101,7 +101,7 @@ static int svq3_parse_packet (AVFormatContext *s, PayloadContext *sv,
101 101
     if (end_packet) {
102 102
         av_init_packet(pkt);
103 103
         pkt->stream_index = st->index;
104
-        pkt->pts          = sv->timestamp;
104
+        *timestamp        = sv->timestamp;
105 105
         pkt->flags        = sv->is_keyframe ? AV_PKT_FLAG_KEY : 0;
106 106
         pkt->size         = url_close_dyn_buf(sv->pktbuf, &pkt->data);
107 107
         pkt->destruct     = av_destruct_packet;