[x265] [PATCH] Fix build warnings

Pavan Tarun pavan.tarun.chakka at gmail.com
Thu Sep 11 04:42:53 UTC 2025


>From 5c084aaaf5c5ddb991d96d2818c2d8ee8c19039b Mon Sep 17 00:00:00 2001
From: PavanTarun <pavan.tarun at multicorewareinc.com>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20250911/d5d90b18/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: [x265] 0001-Fix-build-warnings 2.patch
Type: application/octet-stream
Size: 1480 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20250911/d5d90b18/attachment.obj>


More information about the x265-devel mailing list