ref: ff46fc7d930b41efa449491e7ca9cf8bfd27faf8
parent: 95d32473a100e6541282cbe90abb9ae8557694c0
parent: 20295c68fdee4b6e89a9c118c0b8ead873413c16
author: sijchen <[email protected]>
date: Wed May 21 12:33:26 EDT 2014
Merge pull request #876 from huili2/bs_buffer_expand_master expand the bs buffer size
--- a/codec/decoder/core/inc/wels_const.h
+++ b/codec/decoder/core/inc/wels_const.h
@@ -93,7 +93,7 @@
#define MAX_NAL_UNIT_NUM_IN_AU 32 // predefined maximal number of NAL Units in an access unit
#define MAX_ACCESS_UNIT_CAPACITY 1048576 // Maximal AU capacity in bytes: (1<<20) = 1024 KB predefined
-#define BS_BUFFER_SIZE (MAX_ACCESS_UNIT_CAPACITY + MAX_ACCESS_UNIT_CAPACITY) //for delay case, save two AU at most
+#define BS_BUFFER_SIZE (MAX_ACCESS_UNIT_CAPACITY * 3) //for delay case, keep three AU size to prevent buffer overwrite
#define MAX_MACROBLOCK_CAPACITY 5000 //Maximal legal MB capacity, 15000 bits is enough
#endif//WELS_CONSTANCE_H__