diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-03 22:45:33 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-03 20:50:49 +0200 |
commit | 78426da3f41bd88cc8ba02971a3a5be389fbead7 (patch) | |
tree | cffe0c389fde69a6ee1a605357c846cc6896c760 /doc | |
parent | 8a23159797f8ab60c4e01307e94d2801149617b0 (diff) | |
download | ffmpeg-78426da3f41bd88cc8ba02971a3a5be389fbead7.tar.gz |
examples/remuxing: Use av_packet_rescale_ts()
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/remuxing.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c index 8deaca6a06..3697e488a8 100644 --- a/doc/examples/remuxing.c +++ b/doc/examples/remuxing.c @@ -156,9 +156,7 @@ int main(int argc, char **argv) log_packet(ifmt_ctx, &pkt, "in"); /* copy packet */ - pkt.pts = av_rescale_q_rnd(pkt.pts, in_stream->time_base, out_stream->time_base, AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX); - pkt.dts = av_rescale_q_rnd(pkt.dts, in_stream->time_base, out_stream->time_base, AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX); - pkt.duration = av_rescale_q(pkt.duration, in_stream->time_base, out_stream->time_base); + av_packet_rescale_ts(&pkt, in_stream->time_base, out_stream->time_base); pkt.pos = -1; log_packet(ofmt_ctx, &pkt, "out"); |