[x265] [PATCH 1 of 2] fix check failure in Entropy::writeCoefRemainExGolomb()
Min Chen
chenm003 at 163.com
Thu Apr 30 13:52:46 CEST 2015
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1430394750 -28800
# Node ID 7da131e3412428e3cfcab577b9e5c211b920458c
# Parent e14e721da50dd94007a8f41f2c5b24f4704f0136
fix check failure in Entropy::writeCoefRemainExGolomb()
---
source/encoder/entropy.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff -r e14e721da50d -r 7da131e34124 source/encoder/entropy.cpp
--- a/source/encoder/entropy.cpp Thu Apr 30 18:49:14 2015 +0800
+++ b/source/encoder/entropy.cpp Thu Apr 30 19:52:30 2015 +0800
@@ -1148,9 +1148,9 @@
unsigned long idx;
CLZ(idx, codeNumber + 1);
length = idx;
+ X265_CHECK((codeNumber != 0) || (length == 0), "length check failure\n");
codeNumber -= (1 << idx) - 1;
}
- X265_CHECK((codeNumber != 0) || (length == 0), "length check failure\n");
codeNumber = (codeNumber << absGoRice) + codeRemain;
encodeBinsEP((1 << (COEF_REMAIN_BIN_REDUCTION + length + 1)) - 2, COEF_REMAIN_BIN_REDUCTION + length + 1);
More information about the x265-devel
mailing list