ref: 70d08736dd5a24cda1058aa67f73d6e2ceb2c244
parent: f743f04ed7a4fc7104e938060b1766a05f0ad3ca
author: Haibo Zhu <haibozhu@cisco.com>
date: Tue Jul 14 11:38:16 EDT 2015
Fix logic errors in CheckAccessUnitBoundaryExt
--- a/codec/decoder/core/src/au_parser.cpp
+++ b/codec/decoder/core/src/au_parser.cpp
@@ -440,19 +440,13 @@
}
// Subclause 7.4.1.2.5
- if (pLastSliceHeader->iRedundantPicCnt < pCurSliceHeader->iRedundantPicCnt)
- return false;
- else if (pLastSliceHeader->iRedundantPicCnt > pCurSliceHeader->iRedundantPicCnt)
+ if (pLastSliceHeader->iRedundantPicCnt > pCurSliceHeader->iRedundantPicCnt)
return true;
// Subclause G7.4.1.2.4
- if (pLastNalHdrExt->uiDependencyId < pCurNalHeaderExt->uiDependencyId)
- return false;
- else if (pLastNalHdrExt->uiDependencyId > pCurNalHeaderExt->uiDependencyId)
+ if (pLastNalHdrExt->uiDependencyId > pCurNalHeaderExt->uiDependencyId)
return true;
- if (pLastNalHdrExt->uiQualityId < pCurNalHeaderExt->uiQualityId)
- return false;
- else if (pLastNalHdrExt->uiQualityId > pCurNalHeaderExt->uiQualityId)
+ if (pLastNalHdrExt->uiQualityId > pCurNalHeaderExt->uiQualityId)
return true;
// Subclause 7.4.1.2.4