diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-11-09 12:55:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-11-10 02:38:49 +0100 |
| commit | 247191469093427b05229bd0051c25395a30f4b5 (patch) | |
| tree | fc46e2e513ddc4cfcffbffe50db244649d12234e /src/lib/ffmpeg_examiner.cc | |
| parent | 111acef9b225731c99274d82cdd374acc04ca252 (diff) | |
Fix examination logic.v2.16.97
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.
Diffstat (limited to 'src/lib/ffmpeg_examiner.cc')
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 4 |
1 files 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<const FFmpegContent> c, shared_ptr<Jo * and a string seems a reasonably neat way to do that. */ string temporal_reference; - bool carry_on_video = false; - std::vector<bool> carry_on_audio(_audio_streams.size()); + bool carry_on_video = has_video(); + std::vector<bool> carry_on_audio(_audio_streams.size(), true); while (true) { auto packet = av_packet_alloc (); DCPOMATIC_ASSERT (packet); |
