summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-09-23 00:09:47 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-27 13:41:46 +0200
commit67ff55886b1ee86d99c2ea27d10c73b85b0504b7 (patch)
tree58f0a78ebb1e02f50c9e101b53c0402e3f688673 /src/lib/util.cc
parent571a29b441ce6fe4a1e35bbcbcf4ea6abc885c22 (diff)
Various alignment tidying/fixups.
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 981cfa521..d3af74376 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -957,7 +957,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());
- auto image = proxy.image(Image::Alignment::COMPACT).image;
+ auto image = proxy.image(Image::Alignment::PADDED).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));