isomp4: Add mfhd atom dumping

This commit is contained in:
Edward Hervey 2014-11-26 15:58:26 +01:00
parent 61bbd2d226
commit c45533bcd7
3 changed files with 14 additions and 1 deletions

View file

@ -572,6 +572,17 @@ qtdemux_dump_mfro (GstQTDemux * qtdemux, GstByteReader * data, int depth)
return TRUE;
}
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)
{

View file

@ -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,

View file

@ -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},