TF_DEFAULT_SAMPLE_DURATION = 0x08, /* default-sample-duration-present */
TF_DEFAULT_SAMPLE_SIZE = 0x010, /* default-sample-size-present */
TF_DEFAULT_SAMPLE_FLAGS = 0x020, /* default-sample-flags-present */
- TF_DURATION_IS_EMPTY = 0x010000 /* sample-composition-time-offsets-presents */
+ TF_DURATION_IS_EMPTY = 0x010000, /* sample-composition-time-offsets-presents */
+ TF_DEFAULT_BASE_IS_MOOF = 0x020000 /* default-base-is-moof */
};
typedef struct _AtomTRAK
if (G_UNLIKELY (!*stream))
goto unknown_stream;
+ if (flags & TF_DEFAULT_BASE_IS_MOOF)
+ *base_offset = qtdemux->moof_offset;
+
if (flags & TF_BASE_DATA_OFFSET)
if (!gst_byte_reader_get_uint64_be (tfhd, (guint64 *) base_offset))
goto invalid_track;
TF_DEFAULT_SAMPLE_DURATION = 0x000008, /* default-sample-duration-present */
TF_DEFAULT_SAMPLE_SIZE = 0x000010, /* default-sample-size-present */
TF_DEFAULT_SAMPLE_FLAGS = 0x000020, /* default-sample-flags-present */
- TF_DURATION_IS_EMPTY = 0x100000 /* duration-is-empty */
+ TF_DURATION_IS_EMPTY = 0x010000, /* duration-is-empty */
+ TF_DEFAULT_BASE_IS_MOOF = 0x020000 /* default-base-is-moof */
};
enum TrFlags