diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-01 12:05:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-08 17:17:15 +0100 |
| commit | cbcc48abb48d6f071be5684729cf6242f24d43bc (patch) | |
| tree | b3b9fce97eb9e7b099eaac2e0e5229da76485860 /src/lib | |
| parent | 67601483f54a14e0db9ffeadb430348cf51f0457 (diff) | |
Fix FFmpegExaminer termination condition when there is no video;
it's hard to see how this ever worked.
Diffstat (limited to 'src/lib')
| -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; } |
