Lines Matching refs:sectors
54 uint32_t *sectors; /**< file allocation table */ member
95 … (wf->sectors[i] != wf->sectors[i - 1] + (1 << (wf->sector_bits - WTV_SECTOR_BITS)) && in wtvfile_read_packet()
96 seek_by_sector(pb, wf->sectors[i], 0) < 0)) { in wtvfile_read_packet()
121 seek_by_sector(pb, wf->sectors[offset >> wf->sector_bits], in wtvfile_seek()
166 wf->sectors = av_malloc(sizeof(uint32_t)); in wtvfile_open_sector()
167 if (!wf->sectors) { in wtvfile_open_sector()
171 wf->sectors[0] = first_sector; in wtvfile_open_sector()
174 wf->sectors = av_malloc(WTV_SECTOR_SIZE); in wtvfile_open_sector()
175 if (!wf->sectors) { in wtvfile_open_sector()
179 wf->nb_sectors = read_ints(s->pb, wf->sectors, WTV_SECTOR_SIZE / 4); in wtvfile_open_sector()
185 wf->sectors = av_malloc_array(nb_sectors1, 1 << WTV_SECTOR_BITS); in wtvfile_open_sector()
186 if (!wf->sectors) { in wtvfile_open_sector()
194 … wf->nb_sectors += read_ints(s->pb, wf->sectors + i * WTV_SECTOR_SIZE / 4, WTV_SECTOR_SIZE / 4); in wtvfile_open_sector()
204 av_freep(&wf->sectors); in wtvfile_open_sector()
210 if (size >= 0 && (int64_t)wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > size) in wtvfile_open_sector()
223 if (seek_by_sector(s->pb, wf->sectors[0], 0) < 0) { in wtvfile_open_sector()
224 av_freep(&wf->sectors); in wtvfile_open_sector()
232 av_freep(&wf->sectors); in wtvfile_open_sector()
241 av_freep(&wf->sectors); in wtvfile_open_sector()
309 av_freep(&wf->sectors); in wtvfile_close()