oiiodecoder: set correct image stream

Fixes bug where loading a saved project with still images could crash.
This commit is contained in:
itsmattkc
2020-02-26 11:37:57 +11:00
parent 7e7ff49777
commit 0bef116020
+3
View File
@@ -83,6 +83,9 @@ bool OIIODecoder::Probe(Footage *f, const QAtomicInt *cancelled)
image_stream->set_width(spec.width);
image_stream->set_height(spec.height);
// Images will always have just one stream
image_stream->set_index(0);
// OIIO automatically premultiplies alpha
// FIXME: We usually disassociate the alpha for the color management later, for 8-bit images this likely reduces the
// fidelity?