From 5626e6aeb1295719bf151cd94129367549f32cd1 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed, 29 Mar 2023 22:23:53 -0700 Subject: [PATCH] framehashcache: ensure loaded jpeg is in correct format --- app/render/framehashcache.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/render/framehashcache.cpp b/app/render/framehashcache.cpp index bbec015f5c..4183183f91 100644 --- a/app/render/framehashcache.cpp +++ b/app/render/framehashcache.cpp @@ -206,6 +206,9 @@ FramePtr FrameHashCache::LoadCacheFrame(const QString &fn) const int channel_count = 4; const rational par(1, 1); + // Convert to frame (FIXME: might be slow? may be a better way to do this on the GPU) + img.convertTo(QImage::Format_RGBA8888_Premultiplied); + frame = Frame::Create(); frame->set_video_params(VideoParams(img.width() * div, img.height() * div,