diff options
author | Martin Storsjö <martin@martin.st> | 2010-07-14 12:27:26 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-07-14 12:27:26 +0000 |
commit | 5590cc78ee658128ef572507d3dc9ef7744d4ea7 (patch) | |
tree | 32a099f1ec9643f34990851c9db13496561da6a2 /libavformat/rtpdec_svq3.c | |
parent | d74c6145fb1873a7c301581756fba88465e078e5 (diff) | |
download | ffmpeg-5590cc78ee658128ef572507d3dc9ef7744d4ea7.tar.gz |
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
Diffstat (limited to 'libavformat/rtpdec_svq3.c')
-rw-r--r-- | libavformat/rtpdec_svq3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_svq3.c b/libavformat/rtpdec_svq3.c index a285036997..af08c88c61 100644 --- a/libavformat/rtpdec_svq3.c +++ b/libavformat/rtpdec_svq3.c @@ -101,7 +101,7 @@ static int svq3_parse_packet (AVFormatContext *s, PayloadContext *sv, 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; |