mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
isomp4: Add mfhd atom dumping
This commit is contained in:
parent
61bbd2d226
commit
c45533bcd7
3 changed files with 14 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue