1
0
mirror of https://github.com/KDE/krfb synced 2026-07-01 07:41:17 -07:00

pw: fix memcpy size

This commit is contained in:
Midori Kochiya
2025-03-11 07:47:35 +00:00
committed by Aleix Pol Gonzalez
parent 7b8e02825d
commit caa11fb498

View File

@@ -371,7 +371,7 @@ void PWFrameBuffer::Private::handleFrame(const PipeWireFrame &frame)
if (frame.dataFrame) {
// FIXME: Assuming stride == width * 4, not sure to which extent this holds
setVideoSize(frame.dataFrame->size);
memcpy(q->fb, frame.dataFrame->data, frame.dataFrame->size.width() * frame.dataFrame->stride);
memcpy(q->fb, frame.dataFrame->data, frame.dataFrame->size.height() * frame.dataFrame->stride);
}
#endif
else if (frame.dmabuf) {