Add debug for returned frame decision

pull/3779/head
Isaac Connor 2023-10-16 14:05:25 -04:00
parent 61791c76a3
commit 11214cb9c9
1 changed files with 2 additions and 0 deletions

View File

@ -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");