Showing the changes to codec/decoder (1 of 1 file). Show all
Unified · Split
| @@ -857,6 +857,10 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 856 unmodified lines | ||
| 857 | 857 | WELS_CHECK_SE_UPPER_ERROR (uiCode, SLICE_HEADER_REDUNDANT_PIC_CNT_MAX, "redundant_pic_cnt", |
| 858 | 858 | GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_INVALID_REDUNDANT_PIC_CNT)); |
| 859 | 859 | pSliceHead->iRedundantPicCnt = uiCode; |
| 860 | + if (pSliceHead->iRedundantPicCnt > 0) { | |
| 861 | + WelsLog (pLogCtx, WELS_LOG_WARNING, "Redundant picture not supported!"); | |
| 862 | + return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_INVALID_REDUNDANT_PIC_CNT); | |
| 863 | + } | |
| 860 | 864 | } |
| 861 | 865 | |
| 862 | 866 | //set defaults, might be overriden a few line later |