Lines Matching refs:size
107 uint64_t size;
129 uint64_t size,
134 unsigned char *end = pos + size;
139 atom.size = BE_32(pos);
144 switch (atom.size) {
147 fprintf(stderr, "not enough room for 64 bit atom size\n");
151 atom.size = BE_64(pos);
157 atom.size = ATOM_PREAMBLE_SIZE + end - pos;
161 if (atom.size < atom.header_size) {
162 fprintf(stderr, "atom size %"PRIu64" too small\n", atom.size);
166 atom.size -= atom.header_size;
168 if (atom.size > end - pos) {
169 fprintf(stderr, "atom size %"PRIu64" too big\n", atom.size);
179 pos += atom.size;
193 if (atom->size < 8) {
194 fprintf(stderr, "stco atom size %"PRIu64" too small\n", atom->size);
199 if (offset_count > (atom->size - 8) / 4) {
205 context->stco_data_size += atom->size - 8;
229 if (atom->size < 8) {
230 fprintf(stderr, "co64 atom size %"PRIu64" too small\n", atom->size);
235 if (offset_count > (atom->size - 8) / 8) {
276 atom->size,
286 static void set_atom_size(unsigned char *header, uint32_t header_size, uint64_t size)
290 AV_WB32(header, size);
294 AV_WB64(header + 8, size);
352 atom->size,
358 /* update the atom size */
363 copy_size = atom->header_size + atom->size;
478 fprintf(stderr, "ftyp atom size %"PRIu64" too big\n",
535 /* The atom header is 8 (or 16 bytes), if the atom size (which
559 fprintf(stderr, "bad moov atom size\n");