[x265] [slice] fix calculate on slice address bits
chen
chenm003 at 163.com
Tue Oct 4 20:45:08 CEST 2016
From df3f1ed60baa2b5baab0fe9f98f6f2d0f4a6265d Mon Sep 17 00:00:00 2001
From: Min Chen <min.chen at multicorewareinc.com>
Date: Tue, 4 Oct 2016 13:43:40 -0500
Subject: [PATCH] [slice] fix calculate on slice address bits
---
source/encoder/frameencoder.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/source/encoder/frameencoder.cpp b/source/encoder/frameencoder.cpp
index 6966747..ef3edfb 100644
--- a/source/encoder/frameencoder.cpp
+++ b/source/encoder/frameencoder.cpp
@@ -152,7 +152,7 @@ bool FrameEncoder::init(Encoder *top, int numRows, int numCols)
// 7.4.7.1 - Ceil( Log2( PicSizeInCtbsY ) ) bits
{
unsigned long tmp;
- CLZ(tmp, (numRows * numCols));
+ CLZ(tmp, (numRows * numCols - 1));
m_sliceAddrBits = (uint16_t)(tmp + 1);
}
--
1.7.9.msysgit.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20161005/d0ea789d/attachment.html>
More information about the x265-devel
mailing list