From 232f58eb0623454448cb9f27a0581ec34464f41a Mon Sep 17 00:00:00 2001 From: nanguantong Date: Sun, 29 Sep 2024 16:59:05 +0800 Subject: [PATCH] fix: ps file seek reset for rtsp test --- librtsp/test/media/ps-file-reader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/librtsp/test/media/ps-file-reader.cpp b/librtsp/test/media/ps-file-reader.cpp index 8e684b05..13e637c5 100644 --- a/librtsp/test/media/ps-file-reader.cpp +++ b/librtsp/test/media/ps-file-reader.cpp @@ -85,13 +85,14 @@ int PSFileReader::Seek(int64_t& dts) { // only audio if (m_v_start_ts < 0) - break; + return 0; if (pkt->flags & AVPACKET_FLAG_KEY) - break; + return 0; } } + m_pkts->Reset(); return 0; }