Lines Matching refs:start_pos
595 static int64_t write_fat_sector(AVFormatContext *s, int64_t start_pos, int nb_sectors, int sector_bits, int depth)
597 int64_t start_sector = start_pos >> WTV_SECTOR_BITS;
724 static int finish_file(AVFormatContext *s, enum WtvFileIndex index, int64_t start_pos)
734 w->length = (end_pos - start_pos);
769 w->first_sector = write_fat_sector(s, start_pos, nb_sectors, sector_bits, w->depth) >> WTV_SECTOR_BITS;
771 w->first_sector = start_pos >> WTV_SECTOR_BITS;
787 int64_t start_pos, file_end_pos;
792 start_pos = avio_tell(pb);
794 if (finish_file(s, WTV_TIMELINE_TABLE_0_ENTRIES_EVENTS, start_pos) < 0)
797 start_pos = avio_tell(pb);
799 if (finish_file(s, WTV_TABLE_0_ENTRIES_LEGACY_ATTRIB, start_pos) < 0)
802 start_pos = avio_tell(pb);
804 if (finish_file(s, WTV_TABLE_0_REDIRECTOR_LEGACY_ATTRIB, start_pos) < 0)
807 start_pos = avio_tell(pb);
809 if (finish_file(s, WTV_TABLE_0_ENTRIES_TIME, start_pos) < 0)