Adapt for libdcp use of enum class.
[dcpomatic.git] / src / lib / ffmpeg_examiner.cc
index 5683555e4aaffc42b3bce4493b17e9a5f1f3a72b..23c2f1a72609189a010ba041f9e02f292f96b9c3 100644 (file)
@@ -36,7 +36,6 @@ extern "C" {
 #include <libavutil/display.h>
 }
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/foreach.hpp>
 #include <iostream>
 
 #include "i18n.h"
@@ -45,7 +44,7 @@ using std::string;
 using std::cout;
 using std::max;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
@@ -184,8 +183,6 @@ DCPOMATIC_ENABLE_WARNINGS
                }
 
                _rotation = *_rotation - 360 * floor (*_rotation / 360 + 0.9 / 360);
-
-               DCPOMATIC_ASSERT (fabs (*_rotation - 90 * round (*_rotation / 90)) < 2);
        }
 
        LOG_GENERAL("Temporal reference was %1", temporal_reference);
@@ -194,13 +191,6 @@ DCPOMATIC_ENABLE_WARNINGS
                _pulldown = true;
                LOG_GENERAL_NC("Suggest that this may be 2:3 pull-down (soft telecine)");
        }
-
-#ifdef DCPOMATIC_VARIANT_SWAROOP
-       AVDictionaryEntry* e = av_dict_get (_format_context->metadata, SWAROOP_ID_TAG, 0, 0);
-       if (e) {
-               _id = e->value;
-       }
-#endif
 }