Fix incorrect string find logic.
authorCarl Hetherington <cth@carlh.net>
Mon, 3 Aug 2020 07:51:12 +0000 (09:51 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 3 Aug 2020 07:51:12 +0000 (09:51 +0200)
src/lib/ffmpeg_examiner.cc

index 87bb8ce95687f5bc331cc1b5057014202be4f4a5..2c6e1b21f3da50cc25ab32feef55d913dd3fff40 100644 (file)
@@ -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)");