Lines Matching defs:sectors
55 uint32_t *sectors; /**< file allocation table */
56 int nb_sectors; /**< number of sectors */
96 (wf->sectors[i] != wf->sectors[i - 1] + (1 << (wf->sector_bits - WTV_SECTOR_BITS)) &&
97 seek_by_sector(pb, wf->sectors[i], 0) < 0)) {
122 seek_by_sector(pb, wf->sectors[offset >> wf->sector_bits],
167 wf->sectors = av_malloc(sizeof(uint32_t));
168 if (!wf->sectors) {
172 wf->sectors[0] = first_sector;
175 wf->sectors = av_malloc(WTV_SECTOR_SIZE);
176 if (!wf->sectors) {
180 wf->nb_sectors = read_ints(s->pb, wf->sectors, WTV_SECTOR_SIZE / 4);
186 wf->sectors = av_malloc_array(nb_sectors1, 1 << WTV_SECTOR_BITS);
187 if (!wf->sectors) {
195 wf->nb_sectors += read_ints(s->pb, wf->sectors + i * WTV_SECTOR_SIZE / 4, WTV_SECTOR_SIZE / 4);
205 av_freep(&wf->sectors);
211 if (size >= 0 && (int64_t)wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > size)
217 av_log(s, AV_LOG_WARNING, "reported file length (0x%"PRIx64") exceeds number of available sectors (0x%"PRIx64")\n", length, (int64_t)wf->nb_sectors << wf->sector_bits);
224 if (seek_by_sector(s->pb, wf->sectors[0], 0) < 0) {
225 av_freep(&wf->sectors);
233 av_freep(&wf->sectors);
242 av_freep(&wf->sectors);
310 av_freep(&wf->sectors);