shithub: openh264

Download patch

ref: f1a0a81226c23c915a8cc52a9b02ae3a44a70354
parent: ab41e69a5ebfdcfb3c83afc3b86ece4d99fd9f8f
author: huili2 <[email protected]>
date: Fri Jul 4 16:40:41 EDT 2014

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)