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;
725 static int finish_file(AVFormatContext *s, enum WtvFileIndex index, int64_t start_pos)
735 w->length = (end_pos - start_pos);
770 w->first_sector = write_fat_sector(s, start_pos, nb_sectors, sector_bits, w->depth) >> WTV_SECTOR_BITS;
772 w->first_sector = start_pos >> WTV_SECTOR_BITS;
788 int64_t start_pos, file_end_pos;
793 start_pos = avio_tell(pb);
795 if (finish_file(s, WTV_TIMELINE_TABLE_0_ENTRIES_EVENTS, start_pos) < 0)
798 start_pos = avio_tell(pb);
800 if (finish_file(s, WTV_TABLE_0_ENTRIES_LEGACY_ATTRIB, start_pos) < 0)
803 start_pos = avio_tell(pb);
805 if (finish_file(s, WTV_TABLE_0_REDIRECTOR_LEGACY_ATTRIB, start_pos) < 0)
808 start_pos = avio_tell(pb);
810 if (finish_file(s, WTV_TABLE_0_ENTRIES_TIME, start_pos) < 0)