ref: 388a93fe259f24ddb9bea3771d5a7650b539d325
parent: 78eed44d1523ec28012b0e96ae209993c312c989
author: Martin Storsjö <[email protected]>
date: Fri May 30 07:30:17 EDT 2014
Enlarge pLongRefList to avoid accesses out of bounds This fixes warnings about "array subscript is above array bounds".
--- a/codec/encoder/core/inc/encoder_context.h
+++ b/codec/encoder/core/inc/encoder_context.h
@@ -64,7 +64,7 @@
*/
typedef struct TagRefList {
SPicture* pShortRefList[1 + MAX_SHORT_REF_COUNT]; // reference list 0 - int16_t
- SPicture* pLongRefList[1 + MAX_LONG_REF_COUNT]; // reference list 1 - int32_t
+ SPicture* pLongRefList[1 + MAX_REF_PIC_COUNT]; // reference list 1 - int32_t
SPicture* pNextBuffer;
SPicture* pRef[1 + MAX_REF_PIC_COUNT]; // plus 1 for swap intend
uint8_t uiShortRefCount;