Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/tee.c')
-rw-r--r--libavformat/tee.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index daddba5741..b4158e18c1 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -543,9 +543,7 @@ static int tee_write_packet(AVFormatContext *avf, AVPacket *pkt)
}
tb = avf ->streams[s ]->time_base;
tb2 = avf2->streams[s2]->time_base;
- pkt2.pts = av_rescale_q(pkt->pts, tb, tb2);
- pkt2.dts = av_rescale_q(pkt->dts, tb, tb2);
- pkt2.duration = av_rescale_q(pkt->duration, tb, tb2);
+ av_packet_rescale_ts(&pkt2, tb, tb2);
pkt2.stream_index = s2;
if ((ret = av_apply_bitstream_filters(avf2->streams[s2]->codec, &pkt2,