shithub: openh264

Download patch

ref: 8537a9274dd2d356bf0c8d8d3d918d3b1d7b7d8e
parent: a9601cdc590a442cfb8da57644ad43b7b1368882
author: sijchen@cisco.com <sijchen@cisco.com>
date: Wed Jun 1 05:20:56 EDT 2016

fix a prob

--- a/codec/encoder/core/src/ref_list_mgr_svc.cpp
+++ b/codec/encoder/core/src/ref_list_mgr_svc.cpp
@@ -668,7 +668,7 @@
           pRefReorder->SReorderingSyntax[iRefIdx].uiReorderingOfPicNumsIdc = 2;
           pRefReorder->SReorderingSyntax[iRefIdx].iLongTermPicNum = pCtx->pRefList0[iRefIdx]->iLongTermPicNum;
         }
-        pRefReorder->SReorderingSyntax[1].uiReorderingOfPicNumsIdc = 3;
+        pRefReorder->SReorderingSyntax[iRefIdx].uiReorderingOfPicNumsIdc = 3;
       }
     }