From a092ca90eb51c8ff29abeb34e936856702cd60d9 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 26 Apr 2022 10:08:36 -0400 Subject: [PATCH] Fix logging of next_dts instead of last_dts --- src/zm_videostore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index e578d5196..477e7544c 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -1246,8 +1246,8 @@ int VideoStore::write_packet(AVPacket *pkt, AVStream *stream) { } pkt->dts = last_dts[stream->index]; } else if (pkt->dts < last_dts[stream->index]) { - Warning("non increasing dts, fixing. our dts %" PRId64 " stream %d next_dts %" PRId64, - pkt->dts, stream->index, next_dts[stream->index]); + Warning("non increasing dts, fixing. our dts %" PRId64 " stream %d last_dts %" PRId64, + pkt->dts, stream->index, last_dts[stream->index]); pkt->dts = last_dts[stream->index]; }