summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-03 09:51:12 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-03 09:51:12 +0200
commitd461077cf4f2c1470d2d0d6dbc4f5708411bec65 (patch)
treee33a22a0358b6f09563a2b33d6adccd401f5b87d
parent5254047c3ad8c8c4b7ed7bf5b735b8448fcf1c29 (diff)
Fix incorrect string find logic.
-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 87bb8ce95..2c6e1b21f 100644
--- a/src/lib/ffmpeg_examiner.cc
+++ b/src/lib/ffmpeg_examiner.cc
@@ -189,7 +189,7 @@ DCPOMATIC_ENABLE_WARNINGS
}
LOG_GENERAL("Temporal reference was %1", temporal_reference);
- if (temporal_reference.find("T2T3B2B3T2T3B2B3") || temporal_reference.find("B2B3T2T3B2B3T2T3")) {
+ if (temporal_reference.find("T2T3B2B3T2T3B2B3") != string::npos || temporal_reference.find("B2B3T2T3B2B3T2T3") != string::npos) {
/* The magical sequence (taken from mediainfo) suggests that 2:3 pull-down is in use */
_pulldown = true;
LOG_GENERAL_NC("Suggest that this may be 2:3 pull-down (soft telecine)");