MCPcopy Create free account
hub / github.com/cisco/openh264 / FreeLayerData

Function FreeLayerData

test/decoder/DecUT_PredMv.cpp:440–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440int32_t FreeLayerData (PDqLayer pDqLayer) {
441
442 if (pDqLayer->pSliceIdc != NULL) {
443 WelsFree (pDqLayer->pSliceIdc, "pDqLayer->pSliceIdc");
444 pDqLayer->pSliceIdc = NULL;
445 }
446
447 if (pDqLayer->pMbType != NULL) {
448 WelsFree (pDqLayer->pMbType, "pDqLayer->pMbType");
449 pDqLayer->pMbType = NULL;
450 }
451
452 if (pDqLayer->pMv[0] != NULL) {
453 WelsFree (pDqLayer->pMv[0], "pDqlayer->pMv[0]");
454 pDqLayer->pMv[0] = NULL;
455 }
456
457 if (pDqLayer->pRefIndex[0] != NULL) {
458 WelsFree (pDqLayer->pRefIndex[0], "pDqlayer->pRefIndex[0]");
459 pDqLayer->pRefIndex[0] = NULL;
460 }
461
462 return 0;
463}
464
465void InitRandomLayerSliceIdc (PDqLayer pDqLayer) {
466 int32_t i = 0;

Callers 1

TESTFunction · 0.85

Calls 1

WelsFreeFunction · 0.50

Tested by

no test coverage detected