summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-01 12:05:33 +0200
committerCarl Hetherington <cth@carlh.net>2023-12-16 02:07:37 +0100
commitc6ff3bc26bf9cf2ab1e9ffcb86db4f1ca8e205a6 (patch)
tree21d325ed8dcaf3934b80a6fbf786dcf3d1870d0d
parente8c3f06bacbcc4a6c745930fca32ffc60f7fbfb7 (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.cc2
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;
}