shithub: openh264

Download patch

ref: fa91f77b1b5e9c9a6959ccf3a7d580efba47287a
parent: 488cc4ec8ef7a0394d0d6a3469e3b346a81f7e18
parent: 058ceb369f66f6ea56052d4e8d7da89380bbd91f
author: kali2 <kali2@cisco.com>
date: Sun Jan 26 14:24:25 EST 2014

Merge pull request #214 from licaiguo/fix-rpl

fix reference picture modification bug -- review #67

--- a/codec/decoder/core/src/manage_dec_ref.cpp
+++ b/codec/decoder/core/src/manage_dec_ref.cpp
@@ -205,7 +205,7 @@
           }
         }
       }
-      if (i < 0)	{
+      if (i < iReorderingIndex)	{
         return ERR_INFO_REFERENCE_PIC_LOST;
       }
       pPic = ppRefList[i];