diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-01 12:05:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-12 09:40:36 +0200 |
| commit | 285fc9b2f1c1e2a42b1adaf4b39a3317b296d30e (patch) | |
| tree | c5a2ac5f09220da71c823a290dd04cb26d6050d5 /src/lib | |
| parent | 9f55a3b5dd2bdade6a5d9269ca010115e1e209f1 (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 73b9ab3a0..673de3a1d 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -152,7 +152,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; } |
