| 5129 | } |
| 5130 | |
| 5131 | avifResult avifDecoderSetIOFile(avifDecoder * decoder, const char * filename) |
| 5132 | { |
| 5133 | avifIO * io = avifIOCreateFileReader(filename); |
| 5134 | if (!io) { |
| 5135 | return AVIF_RESULT_IO_ERROR; |
| 5136 | } |
| 5137 | avifDecoderSetIO(decoder, io); |
| 5138 | return AVIF_RESULT_OK; |
| 5139 | } |
| 5140 | |
| 5141 | // 0-byte extents are ignored/overwritten during the merge, as they are the signal from helper |
| 5142 | // functions that no extent was necessary for this given sample. If both provided extents are |