Premultiply YUVA alpha in FFMpegReaderImplementation.

This commit is contained in:
John Preston 2022-01-20 18:15:08 +03:00
parent 9b59ef00af
commit 846cabeda5
1 changed files with 1 additions and 1 deletions

View File

@ -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) {