# HG changeset patch # User mstorsjo # Date 1279110446 0 # Node ID c74a9b10ee6cb98943a4839511e1c42e79c89f35 # Parent e87b379e881658759a4e9a86ad297e1a2661af58 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. diff -r e87b379e8816 -r c74a9b10ee6c rtpdec_svq3.c --- a/rtpdec_svq3.c Wed Jul 14 12:26:16 2010 +0000 +++ b/rtpdec_svq3.c Wed Jul 14 12:27:26 2010 +0000 @@ -101,7 +101,7 @@ 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;