[channels,rdpecam] fix implicit widening of multiplication result

This commit is contained in:
akallabeth
2025-12-05 09:00:35 +01:00
parent c9b008637b
commit 6bac078120

View File

@@ -351,7 +351,7 @@ static UINT ecam_dev_process_start_streams_request(CameraDevice* dev,
return ERROR_INVALID_DATA;
}
stream->pendingSample = Stream_New(NULL, mediaType.Width * mediaType.Height * 4ull);
stream->pendingSample = Stream_New(NULL, 4ull * mediaType.Width * mediaType.Height);
if (!stream->pendingSample)
{
WLog_ERR(TAG, "pending stream failed");