summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-04-14 21:38:26 +0200
committerCarl Hetherington <cth@carlh.net>2020-04-14 21:38:26 +0200
commit3b31d2d8a129ae6d8d267427bd6b5bc444b40b2a (patch)
tree780947aefb2249a2614bf9e3d894b5256f015967 /src/lib/util.cc
parentb029cb06c4e0fca1fad9fecd78939efe5532fa9a (diff)
Use a struct rather than a std::pair as the return type from ImageProxy::image.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index e4f552c4d..d04bbdf24 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -927,7 +927,7 @@ emit_subtitle_image (ContentTimePeriod period, dcp::SubtitleImage sub, dcp::Size
{
/* XXX: this is rather inefficient; decoding the image just to get its size */
FFmpegImageProxy proxy (sub.png_image());
- shared_ptr<Image> image = proxy.image().first;
+ shared_ptr<Image> image = proxy.image().image;
/* set up rect with height and width */
dcpomatic::Rect<double> rect(0, 0, image->size().width / double(size.width), image->size().height / double(size.height));