shithub: openh264

Download patch

ref: c210ef7f7701186e8f95f0a9eaa3475b179cf36f
parent: 48a90c47fe5c569a87fe0e09d3b549ceb87150e4
author: xiaotiansf <[email protected]>
date: Wed Apr 3 09:10:08 EDT 2019

removed the usage of magic number in the fix of issue 14035.

--- a/codec/decoder/core/src/manage_dec_ref.cpp
+++ b/codec/decoder/core/src/manage_dec_ref.cpp
@@ -129,7 +129,7 @@
         if (pCtx->eSliceType == B_SLICE) {
           //reset reference's references when IDR is lost
           for (int32_t list = LIST_0; list < LIST_A; ++list) {
-            for (int32_t i = 0; i < 17; ++i) {
+            for (int32_t i = 0; i < MAX_DPB_COUNT; ++i) {
               pRef->pRefPic[list][i] = NULL;
             }
           }