35 #define WTV_BIGSECTOR_SIZE (1 << WTV_BIGSECTOR_BITS)
36 #define INDEX_BASE 0x2
37 #define MAX_NB_INDEX 10
50 {
'l'_'e'_'g'_'a'_'c'_'y'_'_'_'a'_'t'_'t'_'r'_'i'_'b', 0};
54 {0x8C,0xC3,0xD2,0xC2,0x7E,0x9A,0xDA,0x11,0x8B,0xF7,0x00,0x07,0xE9,0x5E,0xAD,0x8D};
113 int new_count = *count + 1;
132 for (; size > 0; size--)
141 if (
id == av_guid[i].
id)
142 return &(av_guid[i].
guid);
189 avio_seek(pb, -(chunk_len - 16), SEEK_CUR);
191 avio_seek(pb, chunk_len - (16 + 4), SEEK_CUR);
207 for (i = 0; i < wctx->
nb_index; i++) {
235 int64_t hdr_pos_start;
274 hdr_size =
avio_tell(pb) - hdr_pos_start;
277 avio_seek(pb, -(hdr_size + 4), SEEK_CUR);
534 avio_wl64(pb, len |(1ULL<<62) | (1ULL<<60));
553 for (i = 0; i < nb_sectors; i++) {
554 avio_wl32(pb, start_sector + (i << shift));
614 return 16 + 4 + 4 + strlen(key)*2 + 2;
631 return strlen(
"image/jpeg")*2 + 2 + 1 + (e ? strlen(e->
value)*2 : 0) + 2 + 4 + pkt->
size;
695 int sector_bits, nb_sectors, pad;
699 w->
length = (end_pos - start_pos);
723 nb_sectors = (int)(w->
length >> sector_bits);
726 pad = (1 << sector_bits) - (w->
length % (1 << sector_bits));
752 int64_t start_pos, file_end_pos;