[x265] [PATCH] frameencoder: fix a condition error for m_sliceBaseRow

junyan.he at hotmail.com junyan.he at hotmail.com
Fri Aug 9 07:02:47 CEST 2019


From: He Junyan <junyan.he at hotmail.com>

---
 source/encoder/frameencoder.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/encoder/frameencoder.cpp b/source/encoder/frameencoder.cpp
index bf2e3e3..f5d6627 100644
--- a/source/encoder/frameencoder.cpp
+++ b/source/encoder/frameencoder.cpp
@@ -126,7 +126,7 @@ bool FrameEncoder::init(Encoder *top, int numRows, int numCols)
     for (uint32_t i = 0; i < m_numRows; i++)
     {
         const uint32_t rowRange = (rowSum >> 8);
-        if ((i >= rowRange) & (sidx != m_param->maxSlices - 1))
+        if ((i >= rowRange) && (sidx != m_param->maxSlices - 1))
         {
             rowSum += sliceGroupSizeAccu;
             m_sliceBaseRow[++sidx] = i;
-- 
2.7.4



More information about the x265-devel mailing list