From b456b6b0f668b2c79cfee4496202462ea25fbb21 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 17 Jun 2020 19:53:21 +1000 Subject: [PATCH] oiiodecoder: make sure spec is used instead of basetype Fixed issue with image alpha handling. --- app/codec/oiio/oiiodecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/codec/oiio/oiiodecoder.cpp b/app/codec/oiio/oiiodecoder.cpp index 6d0804267..5a7650e89 100644 --- a/app/codec/oiio/oiiodecoder.cpp +++ b/app/codec/oiio/oiiodecoder.cpp @@ -379,7 +379,7 @@ bool OIIODecoder::OpenImageHandler(const QString &fn) is_rgba_ = (spec.nchannels == kRGBAChannels); - pix_fmt_ = GetFormatFromOIIOBasetype(spec.format); + pix_fmt_ = GetFormatFromOIIOBasetype(spec); if (pix_fmt_ == PixelFormat::PIX_FMT_INVALID) { qWarning() << "Failed to convert OIIO::ImageDesc to native pixel format";