shithub: openh264

Download patch

ref: ae7bac25dcdc433b74a5a925689b52580d75e294
parent: e9980927f7ddd347981839aec144441aa78258d4
author: xiaotiansf <xiaotianshimail@gmail.com>
date: Sat Aug 11 13:03:33 EDT 2018

Fix Bug 1479670
OpenH264: member access within null pointer of type 'struct TagSliceHeaders' in codec/decoder/core/src/decoder_core.cpp

--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -526,7 +526,9 @@
 
           pCtx->iPrevPicOrderCntLsb = 0;
           pCtx->iPrevPicOrderCntMsb = 0;
-          pCtx->pSliceHeader->iPicOrderCntLsb = 0;
+          pSh->iPicOrderCntLsb = 0;
+          if (pCtx->pSliceHeader)
+            pCtx->pSliceHeader->iPicOrderCntLsb = 0;
         }
         ++ iIdx;