Use enum class for VideoRange.
[dcpomatic.git] / src / lib / util.cc
index 36143e2327fe46bd180480e0530ef8d88f49347d..67b6599ea44459dd78d32ecd0dbdd7fe427fb415 100644 (file)
@@ -954,7 +954,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(), VIDEO_RANGE_FULL);
+       FFmpegImageProxy proxy (sub.png_image(), VideoRange::FULL);
        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));