ref: 11c7bfa098ddd3a1aa482e8e4f02dfcd701f41fa
parent: 240729288232fb6369397231b82ae6acc8a894c7
author: Haibo Zhu <haibozhu@cisco.com>
date: Thu Jul 16 07:20:21 EDT 2015
Disable redundant picture to avoid the memory overflow
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -857,6 +857,10 @@
WELS_CHECK_SE_UPPER_ERROR (uiCode, SLICE_HEADER_REDUNDANT_PIC_CNT_MAX, "redundant_pic_cnt",
GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_INVALID_REDUNDANT_PIC_CNT));
pSliceHead->iRedundantPicCnt = uiCode;
+ if (pSliceHead->iRedundantPicCnt > 0) {
+ WelsLog (pLogCtx, WELS_LOG_WARNING, "Redundant picture not supported!");
+ return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_INVALID_REDUNDANT_PIC_CNT);
+ }
}
//set defaults, might be overriden a few line later