As I understand it all SMPTE subtitles are MXF-wrapped.
[libdcp.git] / test / cpl_sar_test.cc
index 0c62ea8b81359d5ea5c53f2a21a3a65f032bd486..cafa589fe5e178b91e2e58099bb7a30f7f47fb57 100644 (file)
 
 #include "cpl.h"
 #include "reel_mono_picture_asset.h"
-#include "mono_picture_mxf.h"
+#include "mono_picture_asset.h"
 #include <libcxml/cxml.h>
 #include <boost/test/unit_test.hpp>
 
 using boost::shared_ptr;
 
-/* Test for a reported bug where <ScreenAspectRatio> in Interop files uses
-   excessive decimal places and (sometimes) the wrong decimal point character.
-*/
+/** Test for a reported bug where <ScreenAspectRatio> in Interop files uses
*  excessive decimal places and (sometimes) the wrong decimal point character.
+ */
 BOOST_AUTO_TEST_CASE (cpl_sar)
 {
-       shared_ptr<dcp::ReelMonoPictureAsset> pa (new dcp::ReelMonoPictureAsset ());
+       shared_ptr<dcp::ReelMonoPictureAsset> pa (
+               new dcp::ReelMonoPictureAsset (
+                       shared_ptr<dcp::MonoPictureAsset> (new dcp::MonoPictureAsset ("test/ref/DCP/dcp_test1/video.mxf")),
+                       0
+                       )
+               );
 
        {
                pa->set_screen_aspect_ratio (dcp::Fraction (1998, 1080));