shithub: openh264

Download patch

ref: 9ac1cd0a17666aca4ac9e28da41d4e2ad259fa11
parent: 881298ed3180f5cf682311e5dee8297d665ba116
author: Licai Guo <[email protected]>
date: Sun Mar 30 14:32:21 EDT 2014

add layer sps/pps to decoder context

--- a/codec/decoder/core/inc/decoder_context.h
+++ b/codec/decoder/core/inc/decoder_context.h
@@ -235,6 +235,8 @@
   SNalUnit            sPrefixNal;
 
   PAccessUnit			pAccessUnitList;	// current access unit list to be performed
+  PSps        pActiveLayerSps[MAX_LAYER_NUM];
+  PPps        pActiveLayerPps[MAX_LAYER_NUM];
   PSps				pSps;	// used by current AU
   PPps				pPps;	// used by current AU
   // Memory for pAccessUnitList is dynamically held till decoder destruction.
--- a/codec/decoder/core/inc/wels_const.h
+++ b/codec/decoder/core/inc/wels_const.h
@@ -87,7 +87,7 @@
 //#define BASE_DEPENDENCY_ID		0
 #define BASE_DQ_ID				0
 #define MAX_DQ_ID				((uint8_t)-1)
-//#define MAX_LAYER_NUM			(MAX_DEPENDENCY_LAYER * MAX_TEMPORAL_LEVEL * MAX_QUALITY_LEVEL)	// Layer number of Three-tuple
+#define MAX_LAYER_NUM   8
 
 #define LAYER_NUM_EXCHANGEABLE	1