Signed-off-by: Andreas Rheinhardt <[email protected]>
---
doc/examples/remuxing.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c
index 9835cc4c00..b23431567c 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");
--
2.30.2
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".