X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Futil.cc;h=0a060e96084ccf55cd9e913cbf88adc5d6c5afac;hb=e64a1a9aae0200d14feed49a4c6cf537bf5708a4;hp=7c0d1dc4e8b820f26888836db6a1e49cec61b76e;hpb=ba9fb85168d004d7643dc02f911fd173a136758b;p=dcpomatic.git diff --git a/src/lib/util.cc b/src/lib/util.cc index 7c0d1dc4e..0a060e960 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -388,7 +388,7 @@ DCPOMATIC_ENABLE_WARNINGS #endif Pango::init (); - dcp::init (); + dcp::init (tags_path()); #if defined(DCPOMATIC_WINDOWS) || defined(DCPOMATIC_OSX) /* Render something to fontconfig to create its cache */ @@ -953,7 +953,7 @@ void emit_subtitle_image (ContentTimePeriod period, dcp::SubtitleImage sub, dcp::Size size, shared_ptr decoder) { /* XXX: this is rather inefficient; decoding the image just to get its size */ - FFmpegImageProxy proxy (sub.png_image()); + FFmpegImageProxy proxy (sub.png_image(), VIDEO_RANGE_FULL); shared_ptr image = proxy.image().image; /* set up rect with height and width */ dcpomatic::Rect rect(0, 0, image->size().width / double(size.width), image->size().height / double(size.height));