diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-01 12:05:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-09-14 22:27:41 +0200 |
| commit | da9f9b8fb5fe3a0cf73a27bbd829c341c4371ad5 (patch) | |
| tree | e99fea186ff3ac77134e29f8d79f6a295fd30ef6 | |
| parent | 5900b57b4e006f19271a20d24939cd5b3819b354 (diff) | |
Fix FFmpegExaminer termination condition when there is no video;
it's hard to see how this ever worked.
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index cd609d0b1..0a4838956 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -153,7 +153,7 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo av_packet_free (&packet); - if (_first_video && got_all_audio && temporal_reference.size() >= (PULLDOWN_CHECK_FRAMES * 2)) { + if (got_all_audio && (!_video_stream || (_first_video && temporal_reference.size() >= (PULLDOWN_CHECK_FRAMES * 2)))) { /* All done */ break; } |
