ref: ac6cf877d655add210284c3dff6a621ada1e8a7d
parent: 52d25f544a9b5d6d47a64dee8fa3867d43ede287
parent: 7f53c29302916941ac7197677b3b7a3dc7af8f0c
author: huili2 <huili2@cisco.com>
date: Thu Mar 3 11:40:55 EST 2016
Merge pull request #2392 from mstorsjo/decoder-error-return Fix a return value check
--- a/codec/decoder/core/src/decode_slice.cpp
+++ b/codec/decoder/core/src/decode_slice.cpp
@@ -444,7 +444,7 @@
}
iFinalMode = CheckIntraNxNPredMode (&iSampleAvail[0], &iBestMode, i, false);
- if (iFinalMode == ERR_INVALID_INTRA4X4_MODE) {
+ if (iFinalMode == GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_INVALID_INTRA4X4_MODE)) {
return GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_INFO_INVALID_I4x4_PRED_MODE);
}
@@ -528,7 +528,7 @@
iFinalMode = CheckIntraNxNPredMode (&iSampleAvail[0], &iBestMode, i << 2, true);
- if (iFinalMode == ERR_INVALID_INTRA4X4_MODE) {
+ if (iFinalMode == GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_INVALID_INTRA4X4_MODE)) {
return GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_INFO_INVALID_I4x4_PRED_MODE);
}