Skip to content

Commit

Permalink
framehashcache: ensure loaded jpeg is in correct format
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattkc committed Mar 30, 2023
1 parent 324725f commit 5626e6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/render/framehashcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5626e6a

Please sign in to comment.