Use new write() method in example.
authorCarl Hetherington <cth@carlh.net>
Sat, 27 Feb 2021 23:09:38 +0000 (00:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 27 Feb 2021 23:09:38 +0000 (00:09 +0100)
examples/make_dcp.cc

index 93cfc1b666057f4736fd30065f700bf2043e4900..fb17059a3dbfcc822615b498613164551adab36e 100644 (file)
@@ -64,7 +64,7 @@ main ()
        /* Write 24 frames of the same JPEG2000 file */
        dcp::ArrayData picture("examples/help.j2c");
        for (int i = 0; i < 24; ++i) {
        /* Write 24 frames of the same JPEG2000 file */
        dcp::ArrayData picture("examples/help.j2c");
        for (int i = 0; i < 24; ++i) {
-               picture_writer->write (picture.data(), picture.size());
+               picture_writer->write (picture);
        }
 
        /* And finish off */
        }
 
        /* And finish off */