| 339 | } |
| 340 | |
| 341 | static void avifSampleTableDestroy(avifSampleTable * sampleTable) |
| 342 | { |
| 343 | avifArrayDestroy(&sampleTable->chunks); |
| 344 | for (uint32_t i = 0; i < sampleTable->sampleDescriptions.count; ++i) { |
| 345 | avifSampleDescription * description = &sampleTable->sampleDescriptions.description[i]; |
| 346 | avifPropertyArrayDestroy(&description->properties); |
| 347 | } |
| 348 | avifArrayDestroy(&sampleTable->sampleDescriptions); |
| 349 | avifArrayDestroy(&sampleTable->sampleToChunks); |
| 350 | avifArrayDestroy(&sampleTable->sampleSizes); |
| 351 | avifArrayDestroy(&sampleTable->timeToSamples); |
| 352 | avifArrayDestroy(&sampleTable->syncSamples); |
| 353 | avifFree(sampleTable); |
| 354 | } |
| 355 | |
| 356 | static uint32_t avifSampleTableGetImageDelta(const avifSampleTable * sampleTable, uint32_t imageIndex) |
| 357 | { |
no test coverage detected