Showing the changes to codec/encoder/core/src/svc_encode_slice.cpp (1 of 6 files). Show all
Unified · Split
| @@ -898,7 +898,7 @@ int32_t InitSliceBsBuffer (SSlice* pSlice, · 897 unmodified lines | ||
| 898 | 898 | |
| 899 | 899 | if (bIndependenceBsBuffer) { |
| 900 | 900 | pSlice->pSliceBsa = &pSlice->sSliceBs.sBsWrite; |
| 901 | − pSlice->sSliceBs.pBs = (uint8_t*)pMa->WelsMalloc (iMaxSliceBufferSize, "sSliceBs.pBs"); | |
| 901 | + pSlice->sSliceBs.pBs = (uint8_t*)pMa->WelsMallocz (iMaxSliceBufferSize, "sSliceBs.pBs"); | |
| 902 | 902 | if (NULL == pSlice->sSliceBs.pBs) { |
| 903 | 903 | return ENC_RETURN_MEMALLOCERR; |
| 904 | 904 | } |