From 5437215677a061647d13f45a78cea6c9f3550508 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 13 Feb 2019 15:18:39 +0300 Subject: [PATCH] Use premultiplied format for GIF frames. --- Telegram/SourceFiles/media/media_clip_ffmpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/media/media_clip_ffmpeg.cpp b/Telegram/SourceFiles/media/media_clip_ffmpeg.cpp index 067606e5cf..6789f568c5 100644 --- a/Telegram/SourceFiles/media/media_clip_ffmpeg.cpp +++ b/Telegram/SourceFiles/media/media_clip_ffmpeg.cpp @@ -35,7 +35,7 @@ QImage createAlignedImage(QSize size) { auto cleanupdata = static_cast(buffer); auto bufferval = reinterpret_cast(buffer); auto alignedbuffer = buffer + ((bufferval % kAlignImageBy) ? (kAlignImageBy - (bufferval % kAlignImageBy)) : 0); - return QImage(alignedbuffer, width, height, bytesperline, QImage::Format_ARGB32, alignedImageBufferCleanupHandler, cleanupdata); + return QImage(alignedbuffer, width, height, bytesperline, QImage::Format_ARGB32_Premultiplied, alignedImageBufferCleanupHandler, cleanupdata); } bool isAlignedImage(const QImage &image) {