Move video level conversion for RGB from FFmpegImageProxy to Image.
[dcpomatic.git] / src / lib / util.cc
index 6286d1a658dd9fde4bb1320bbd140586f49b05b4..a3c8c50820d3c5bca94f13e0fb52935eb933167d 100644 (file)
@@ -951,7 +951,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(), VideoRange::FULL);
+       FFmpegImageProxy proxy (sub.png_image());
        auto 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));