>From 5c084aaaf5c5ddb991d96d2818c2d8ee8c19039b Mon Sep 17 00:00:00 2001
From: PavanTarun <[email protected]>
Date: Mon, 9 Jun 2025 11:48:30 +0530
Subject: [PATCH] Fix build warnings

---
 source/common/slice.h         | 2 +-
 source/encoder/frameencoder.h | 2 +-
 source/encoder/search.h       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/source/common/slice.h b/source/common/slice.h
index 641be210d..1a0639e49 100644
--- a/source/common/slice.h
+++ b/source/common/slice.h
@@ -292,7 +292,7 @@ struct SPS

     SPS()
     {
-        memset(this, 0, sizeof(*this));
+        memset((void *)this, 0, sizeof(*this));
     }

     ~SPS()
diff --git a/source/encoder/frameencoder.h b/source/encoder/frameencoder.h
index c31762402..9e72eb4dc 100644
--- a/source/encoder/frameencoder.h
+++ b/source/encoder/frameencoder.h
@@ -109,7 +109,7 @@ struct CTURow
         avgQPComputed = 0;
         sliceId = sid;
         reEncode = 0;
-        memset(&rowStats, 0, sizeof(rowStats));
+        memset((void *)&rowStats, 0, sizeof(rowStats));
         rowGoOnCoder.load(initContext);
     }
 };
diff --git a/source/encoder/search.h b/source/encoder/search.h
index df7ad90dd..f0aae356a 100644
--- a/source/encoder/search.h
+++ b/source/encoder/search.h
@@ -93,7 +93,7 @@ struct MotionData

     MotionData()
     {
-        memset(this, 0, sizeof(MotionData));
+        memset((void *)this, 0, sizeof(MotionData));
     }
 };

-- 
2.41.0.windows.1

Attachment: [x265] 0001-Fix-build-warnings 2.patch
Description: Binary data

_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to