mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
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
This commit is contained in:
parent
d74c6145fb
commit
5590cc78ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue