shithub: openh264

Download patch

ref: 34300be44f2e3c4619a2e1a1d346906152925e5a
parent: 9a875532fd3f96cfbeb41cf40b3a8359d3d8e679
author: Licai Guo <[email protected]>
date: Wed Jan 22 13:41:27 EST 2014

add change from master

--- a/codec/decoder/core/src/au_parser.cpp
+++ b/codec/decoder/core/src/au_parser.cpp
@@ -479,6 +479,8 @@
   int32_t iPicHeight		= 0;
   int32_t iBitSize		= 0;
   int32_t iErr				= ERR_NONE;
+  if (kiSrcLen <= 0)
+    return iErr;
 
   pBs	     = &pCtx->sBs;	// SBitStringAux instance for non VCL NALs decoding
   iBitSize = (kiSrcLen << 3) - BsGetTrailingBits (pRbsp + kiSrcLen - 1); // convert into bit