From 11214cb9c95796dcd2a6bc883d08d8e800f747c0 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 16 Oct 2023 14:05:25 -0400 Subject: [PATCH] Add debug for returned frame decision --- src/zm_ffmpeg_input.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zm_ffmpeg_input.cpp b/src/zm_ffmpeg_input.cpp index b55e6d921..bfca1887d 100644 --- a/src/zm_ffmpeg_input.cpp +++ b/src/zm_ffmpeg_input.cpp @@ -282,6 +282,8 @@ AVFrame *FFmpeg_Input::get_frame(int stream_id, double at) { } // Seeking seems to typically seek to a keyframe, so then we have to decode until we get the frame we want. if (frame->pts <= seek_target) { + Debug(1, "Frame pts %" PRId64 " + duration %" PRId64 "= %" PRId64 " <=? %" PRId64, + frame->pts, frame->pkt_duration, frame->pts + frame->pkt_duration, seek_target); while (frame && (frame->pts + frame->pkt_duration < seek_target)) { if (is_video_stream(input_format_context->streams[stream_id])) { zm_dump_video_frame(frame, "pts <= seek_target");