shithub: openh264

Download patch

ref: 058ceb369f66f6ea56052d4e8d7da89380bbd91f
parent: a1c491499f8816f89a80b9af0a42eced0d3c0e27
author: licaiguo <guolicai@gmail.com>
date: Sat Jan 25 11:37:22 EST 2014

fix reference picture modification bug

--- 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];