| 984 | } |
| 985 | |
| 986 | void FreeRefList (SRefList*& pRefList, CMemoryAlign* pMa, const int iMaxNumRefFrame) { |
| 987 | if (NULL == pRefList) { |
| 988 | return; |
| 989 | } |
| 990 | |
| 991 | int32_t iRef = 0; |
| 992 | do { |
| 993 | if (pRefList->pRef[iRef] != NULL) { |
| 994 | FreePicture (pMa, &pRefList->pRef[iRef]); |
| 995 | } |
| 996 | ++ iRef; |
| 997 | } while (iRef < 1 + iMaxNumRefFrame); |
| 998 | |
| 999 | pMa->WelsFree (pRefList, "pRefList"); |
| 1000 | pRefList = NULL; |
| 1001 | } |
| 1002 | |
| 1003 | /*! |
| 1004 | * \brief initialize ppDqLayerList and slicepEncCtx_list due to count number of layers available |
no test coverage detected