Obey requests to change the video range of RGB content.
[dcpomatic.git] / src / lib / util.cc
index ac868c17360068a429de9f5dec93abca4534b49e..0a060e96084ccf55cd9e913cbf88adc5d6c5afac 100644 (file)
@@ -953,7 +953,7 @@ void
 emit_subtitle_image (ContentTimePeriod period, dcp::SubtitleImage sub, dcp::Size size, shared_ptr<TextDecoder> 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> 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));