40e5476c88f7e74a260d468947e82821d6d98ea2
[libdcp.git] / test / subs_in_out.cc
1 #include <iostream>
2 #include "subtitle_asset.h"
3
4 using namespace std;
5
6 int main (int argc, char* argv[])
7 {
8         if (argc < 2) {
9                 cerr << "Syntax: " << argv[0] << " <subtitle file>\n";
10                 exit (EXIT_FAILURE);
11         }
12         
13         dcp::SubtitleAsset s (argv[1]);
14         cout << s.xml_as_string ();
15         return 0;
16 }