You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #include "mov-internal.h"
- #include <errno.h>
- #include <stdint.h>
- #include <stdlib.h>
- #include <assert.h>
-
- // 8.8.2 Movie Extends Header Box (p68)
- int mov_read_mehd(struct mov_t* mov, const struct mov_box_t* box)
- {
- unsigned int version;
- uint64_t fragment_duration;
- version = mov_buffer_r8(&mov->io); /* version */
- mov_buffer_r24(&mov->io); /* flags */
-
- if (1 == version)
- fragment_duration = mov_buffer_r64(&mov->io); /* fragment_duration*/
- else
- fragment_duration = mov_buffer_r32(&mov->io); /* fragment_duration*/
-
- (void)box;
- //assert(fragment_duration <= mov->mvhd.duration);
- return mov_buffer_error(&mov->io);
- }
|