| 493 | } |
| 494 | |
| 495 | void avifCodecDecodeInputDestroy(avifCodecDecodeInput * decodeInput) |
| 496 | { |
| 497 | for (uint32_t sampleIndex = 0; sampleIndex < decodeInput->samples.count; ++sampleIndex) { |
| 498 | avifDecodeSample * sample = &decodeInput->samples.sample[sampleIndex]; |
| 499 | if (sample->ownsData) { |
| 500 | avifRWDataFree((avifRWData *)&sample->data); |
| 501 | } |
| 502 | } |
| 503 | avifArrayDestroy(&decodeInput->samples); |
| 504 | avifFree(decodeInput); |
| 505 | } |
| 506 | |
| 507 | // Returns how many samples are in the chunk. |
| 508 | static uint32_t avifGetSampleCountOfChunk(const avifSampleTableSampleToChunkArray * sampleToChunks, uint32_t chunkIndex) |
no test coverage detected