diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-01 12:05:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-28 02:01:39 +0100 |
| commit | e6e4da63b7862b72822068d79c01428565ec459c (patch) | |
| tree | 2969925382c8861bc6c243fc931ae06473796844 /src/lib/ffmpeg_examiner.cc | |
| parent | c17bcd3bcaced30e4657aab7582ec9efa93b6ea1 (diff) | |
Fix FFmpegExaminer termination condition when there is no video;
it's hard to see how this ever worked.
Diffstat (limited to 'src/lib/ffmpeg_examiner.cc')
| -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 d2d1093a9..59c74b9cc 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; } |
