summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-01 12:05:33 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-04 01:10:48 +0200
commit1e1a670f606968dd8879db1e26eafb34461173c2 (patch)
tree210148741e5ad4b664a9d8bc179f654dc43bdfac /src/lib
parentbea654075e20ebf35a231489c980ca24a64bed72 (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.cc2
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;
}