From 967a41c035c6ae48ea7572b2b57b85c13486cb40 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 15 May 2024 22:46:24 +1000 Subject: [PATCH] USB-Eyetoy: Fix unused comprLen warning But this also has a behavioural change. --- pcsx2/USB/usb-eyetoy/cam-windows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/USB/usb-eyetoy/cam-windows.cpp b/pcsx2/USB/usb-eyetoy/cam-windows.cpp index dd0db0fddc..f748e30853 100644 --- a/pcsx2/USB/usb-eyetoy/cam-windows.cpp +++ b/pcsx2/USB/usb-eyetoy/cam-windows.cpp @@ -392,7 +392,7 @@ namespace usb_eyetoy { const size_t comprLen = jo_write_mpeg( comprBuf.data(), data, frame_width, frame_height, JO_BGR24, mirroring_enabled ? JO_FLIP_X : JO_NONE, JO_FLIP_Y); - comprBuf.resize(comprBufSize); + comprBuf.resize(comprLen); } else if (frame_format == format_jpeg) { @@ -472,7 +472,7 @@ namespace usb_eyetoy if (frame_format == format_mpeg) { const size_t comprLen = jo_write_mpeg(comprBuf.data(), rgbData, frame_width, frame_height, JO_RGB24, JO_NONE, JO_NONE); - comprBuf.resize(comprBufSize); + comprBuf.resize(comprLen); } else if (frame_format == format_jpeg) {