diff options
author | Edward Hervey <bilboed@bilboed.com> | 2014-11-26 15:58:26 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2014-11-26 16:36:39 +0100 |
commit | c45533bcd73244bc54c8000c06835f70dd62b62b (patch) | |
tree | eeea9a8f553ba7116a8f64c50e7f5adfa680d038 | |
parent | 61bbd2d226a5c9575957fc3bcfbebbd7c748ae3d (diff) |
isomp4: Add mfhd atom dumping
-rw-r--r-- | gst/isomp4/qtdemux_dump.c | 11 | ||||
-rw-r--r-- | gst/isomp4/qtdemux_dump.h | 2 | ||||
-rw-r--r-- | gst/isomp4/qtdemux_types.c | 2 |
3 files changed, 14 insertions, 1 deletions
diff --git a/gst/isomp4/qtdemux_dump.c b/gst/isomp4/qtdemux_dump.c index c76b0f21f..08425fde8 100644 --- a/gst/isomp4/qtdemux_dump.c +++ b/gst/isomp4/qtdemux_dump.c @@ -573,6 +573,17 @@ qtdemux_dump_mfro (GstQTDemux * qtdemux, GstByteReader * data, int depth) } gboolean +qtdemux_dump_mfhd (GstQTDemux * qtdemux, GstByteReader * data, int depth) +{ + if (!qt_atom_parser_has_remaining (data, 4)) + return FALSE; + + GST_LOG ("%*s version/flags: %08x", depth, "", GET_UINT32 (data)); + GST_LOG ("%*s sequence_number: %d", depth, "", GET_UINT32 (data)); + return TRUE; +} + +gboolean qtdemux_dump_tfra (GstQTDemux * qtdemux, GstByteReader * data, int depth) { guint64 time = 0, moof_offset = 0; diff --git a/gst/isomp4/qtdemux_dump.h b/gst/isomp4/qtdemux_dump.h index 0003ac135..6b1287418 100644 --- a/gst/isomp4/qtdemux_dump.h +++ b/gst/isomp4/qtdemux_dump.h @@ -63,6 +63,8 @@ gboolean qtdemux_dump_ctts (GstQTDemux * qtdemux, GstByteReader * data, int depth); gboolean qtdemux_dump_mfro (GstQTDemux * qtdemux, GstByteReader * data, int depth); +gboolean qtdemux_dump_mfhd (GstQTDemux * qtdemux, GstByteReader * data, + int depth); gboolean qtdemux_dump_tfra (GstQTDemux * qtdemux, GstByteReader * data, int depth); gboolean qtdemux_dump_tfhd (GstQTDemux * qtdemux, GstByteReader * data, diff --git a/gst/isomp4/qtdemux_types.c b/gst/isomp4/qtdemux_types.c index a47d5ae88..45986bb02 100644 --- a/gst/isomp4/qtdemux_types.c +++ b/gst/isomp4/qtdemux_types.c @@ -157,7 +157,7 @@ static const QtNodeType qt_node_types[] = { {FOURCC_mfro, "movie fragment random access offset", 0, qtdemux_dump_mfro}, {FOURCC_moof, "movie fragment", QT_FLAG_CONTAINER,}, - {FOURCC_mfhd, "movie fragment header", 0,}, + {FOURCC_mfhd, "movie fragment header", 0, qtdemux_dump_mfhd}, {FOURCC_traf, "track fragment", QT_FLAG_CONTAINER,}, {FOURCC_tfhd, "track fragment header", 0, qtdemux_dump_tfhd}, |