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:
committed by
Aleix Pol Gonzalez
parent
7b8e02825d
commit
caa11fb498
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user