Mercurial > libavformat.hg
changeset 6256:c74a9b10ee6c libavformat
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.
author | mstorsjo |
---|---|
date | Wed, 14 Jul 2010 12:27:26 +0000 |
parents | e87b379e8816 |
children | 0689434db2c6 |
files | rtpdec_svq3.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;