shithub: openh264

Download patch

ref: a0c9f02bde77ea427b945e8145eae42f04fa5198
parent: c0feee817dd20c82de47dc704d02c4b48c39786f
parent: 70d08736dd5a24cda1058aa67f73d6e2ceb2c244
author: huili2 <[email protected]>
date: Fri Jul 17 06:44:50 EDT 2015

Merge pull request #2034 from HaiboZhu/BugFix_CheckAccessUnitBoundaryExt

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