Use enum class for VideoRange.
[dcpomatic.git] / src / lib / ffmpeg_image_proxy.cc
index 5b2280cfdfbf5b500261b8e3e34834c2038f8313..d082a8ef7143b58c12b5b8ca381d2adf13a7e8d0 100644 (file)
@@ -195,7 +195,7 @@ FFmpegImageProxy::image (optional<dcp::Size>) const
        AVPixelFormat const pix_fmt = static_cast<AVPixelFormat>(frame->format);
 
        _image.reset (new Image(frame));
-       if (_video_range == VIDEO_RANGE_VIDEO && av_pix_fmt_desc_get(pix_fmt)->flags & AV_PIX_FMT_FLAG_RGB) {
+       if (_video_range == VideoRange::VIDEO && av_pix_fmt_desc_get(pix_fmt)->flags & AV_PIX_FMT_FLAG_RGB) {
                /* Asking for the video range to be converted by libswscale (in Image) will not work for
                 * RGB sources since that method only processes video range in YUV and greyscale.  So we have
                 * to do it ourselves here.