framehashcache: ensure loaded jpeg is in correct format

This commit is contained in:
itsmattkc
2023-03-29 22:23:53 -07:00
parent 324725f1f2
commit 5626e6aeb1
+3
View File
@@ -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,