From 247191469093427b05229bd0051c25395a30f4b5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 9 Nov 2024 12:55:41 +0100 Subject: Fix examination logic. Before we would stop if there was one audio stream and the first packet was from that stream; we would not carry on to find the video. --- src/lib/ffmpeg_examiner.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 5353ddd2b..f5610f502 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -119,8 +119,8 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr c, shared_ptr carry_on_audio(_audio_streams.size()); + bool carry_on_video = has_video(); + std::vector carry_on_audio(_audio_streams.size(), true); while (true) { auto packet = av_packet_alloc (); DCPOMATIC_ASSERT (packet); -- cgit v1.2.3