From: He Junyan <[email protected]>

---
 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

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

Reply via email to