mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Premultiply YUVA alpha in FFMpegReaderImplementation.
This commit is contained in:
parent
9b59ef00af
commit
846cabeda5
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ bool FFMpegReaderImplementation::renderFrame(QImage &to, bool &hasAlpha, const Q
|
|||
int toLinesize[AV_NUM_DATA_POINTERS] = { int(to.bytesPerLine()), 0 };
|
||||
sws_scale(_swsContext, _frame->data, _frame->linesize, 0, _frame->height, toData, toLinesize);
|
||||
}
|
||||
if (bgra) {
|
||||
if (hasAlpha) {
|
||||
FFmpeg::PremultiplyInplace(to);
|
||||
}
|
||||
if (_rotation != Rotation::None) {
|
||||
|
|
Loading…
Add table
Reference in a new issue