shithub: openh264

Download patch

ref: 0ad30516c537bf6d4359e43bbe0185db6abcf809
parent: ab41e69a5ebfdcfb3c83afc3b86ece4d99fd9f8f
parent: f1a0a81226c23c915a8cc52a9b02ae3a44a70354
author: HaiboZhu <[email protected]>
date: Sat Jul 5 09:24:10 EDT 2014

Merge pull request #1088 from huili2/crash_dpb_ec

dpb uninitial crash for EC

--- a/codec/decoder/core/src/decoder.cpp
+++ b/codec/decoder/core/src/decoder.cpp
@@ -228,6 +228,8 @@
     }
   }
 
+  pCtx->pPreviousDecodedPictureInDpb = NULL;
+
   // currently only active for LIST_0 due to have no B frames
   iErr = CreatePicBuff (pCtx, &pCtx->pPicBuff[LIST_0], iPicQueueSize, kiPicWidth, kiPicHeight);
   if (iErr != ERR_NONE)