Showing the changes to codec/decoder/core/src/parse_mb_syn_cabac.cpp (1 of 14 files). Show all
Unified · Split
| @@ -777,6 +777,7 @@ int32_t ParseInterBMotionInfoCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pN · 776 unmodified lines | ||
| 777 | 777 | if (pCtx->pParam->eEcActiveIdc != ERROR_CON_DISABLE) { |
| 778 | 778 | iRef[listIdx] = 0; |
| 779 | 779 | pCtx->iErrorCode |= dsBitstreamError; |
| 780 | + RETURN_ERR_IF_NULL(pCtx->sRefPic.pRefList[listIdx][iRef[listIdx]]); | |
| 780 | 781 | } else { |
| 781 | 782 | return GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_INFO_INVALID_REF_INDEX); |
| 782 | 783 | } |
| @@ -814,6 +815,7 @@ int32_t ParseInterBMotionInfoCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pN · 31 unmodified lines | ||
| 814 | 815 | if (pCtx->pParam->eEcActiveIdc != ERROR_CON_DISABLE) { |
| 815 | 816 | ref_idx = 0; |
| 816 | 817 | pCtx->iErrorCode |= dsBitstreamError; |
| 818 | + RETURN_ERR_IF_NULL(pCtx->sRefPic.pRefList[listIdx][ref_idx]); | |
| 817 | 819 | } else { |
| 818 | 820 | return GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_INFO_INVALID_REF_INDEX); |
| 819 | 821 | } |
| @@ -858,6 +860,7 @@ int32_t ParseInterBMotionInfoCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pN · 38 unmodified lines | ||
| 858 | 860 | if (pCtx->pParam->eEcActiveIdc != ERROR_CON_DISABLE) { |
| 859 | 861 | ref_idx = 0; |
| 860 | 862 | pCtx->iErrorCode |= dsBitstreamError; |
| 863 | + RETURN_ERR_IF_NULL(pCtx->sRefPic.pRefList[listIdx][ref_idx]); | |
| 861 | 864 | } else { |
| 862 | 865 | return GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_INFO_INVALID_REF_INDEX); |
| 863 | 866 | } |
| @@ -992,6 +995,7 @@ int32_t ParseInterBMotionInfoCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pN · 128 unmodified lines | ||
| 992 | 995 | if (pCtx->pParam->eEcActiveIdc != ERROR_CON_DISABLE) { |
| 993 | 996 | iref = 0; |
| 994 | 997 | pCtx->iErrorCode |= dsBitstreamError; |
| 998 | + RETURN_ERR_IF_NULL(pCtx->sRefPic.pRefList[listIdx][iref]); | |
| 995 | 999 | } else { |
| 996 | 1000 | return GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_INFO_INVALID_REF_INDEX); |
| 997 | 1001 | } |