oiiodecoder: make sure spec is used instead of basetype

Fixed issue with image alpha handling.
This commit is contained in:
itsmattkc
2020-06-17 19:53:21 +10:00
parent a818e17c55
commit b456b6b0f6
+1 -1
View File
@@ -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";