diff --git a/src/media/oiio.cpp b/src/media/oiio.cpp index 4e3afab22..ae77ebf8b 100644 --- a/src/media/oiio.cpp +++ b/src/media/oiio.cpp @@ -29,7 +29,7 @@ auto oiio_details_destroy(ncvisual_details* deets) -> void { auto oiio_details_seed(ncvisual* ncv) -> void { int pixels = ncv->pixy * ncv->pixx; ncv->details->frame = std::make_unique(pixels); - OIIO::ImageSpec rgbaspec{ncv->pixx, ncv->pixy, 4}; + OIIO::ImageSpec rgbaspec{static_cast(ncv->pixx), static_cast(ncv->pixy), 4}; ncv->details->ibuf = std::make_unique(rgbaspec, ncv->data); //fprintf(stderr, "got pixel_stride: %ld %ld\n", ncv->details->ibuf->pixel_stride(), ncv->details->ibuf->scanline_stride()); }