diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-02-28 00:09:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-02-28 00:09:38 +0100 |
| commit | 4ee35138973188536d8b9dec2b06ff1e737b67c4 (patch) | |
| tree | f3fadce569ec789372449ee315e670237336c366 /examples | |
| parent | de2a8ad58860273610dcd4bf449f0ada51bafb5f (diff) | |
Use new write() method in example.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/make_dcp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/make_dcp.cc b/examples/make_dcp.cc index 93cfc1b6..fb17059a 100644 --- a/examples/make_dcp.cc +++ b/examples/make_dcp.cc @@ -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) { - picture_writer->write (picture.data(), picture.size()); + picture_writer->write (picture); } /* And finish off */ |
