Commit 4f713717 authored by Edward Hervey's avatar Edward Hervey Committed by Edward Hervey

isomp4: Safely ignore [skip] atoms

Instead of warning about them
parent 1f2e4885
......@@ -204,6 +204,7 @@ G_BEGIN_DECLS
#define FOURCC_sbtl GST_MAKE_FOURCC('s','b','t','l')
#define FOURCC_sdp_ GST_MAKE_FOURCC('s','d','p',' ')
#define FOURCC_sidx GST_MAKE_FOURCC('s','i','d','x')
#define FOURCC_skip GST_MAKE_FOURCC('s','k','i','p')
#define FOURCC_smhd GST_MAKE_FOURCC('s','m','h','d')
#define FOURCC_soaa GST_MAKE_FOURCC('s','o','a','a')
#define FOURCC_soal GST_MAKE_FOURCC('s','o','a','l')
......
......@@ -4301,6 +4301,7 @@ gst_qtdemux_loop_state_header (GstQTDemux * qtdemux)
break;
case FOURCC_mdat:
case FOURCC_free:
case FOURCC_skip:
case FOURCC_wide:
case FOURCC_PICT:
case FOURCC_pnot:
......@@ -6693,8 +6694,9 @@ gst_qtdemux_process_adapter (GstQTDemux * demux, gboolean force)
case FOURCC_styp:
/* [styp] is like a [ftyp], but in fragment header. We ignore it for now
* FALLTHROUGH */
case FOURCC_skip:
case FOURCC_free:
/* [free] is a padding atom */
/* [free] and [skip] are padding atoms */
GST_DEBUG_OBJECT (demux,
"Skipping fourcc while parsing header : %" GST_FOURCC_FORMAT,
GST_FOURCC_ARGS (fourcc));
......
......@@ -146,6 +146,7 @@ static const QtNodeType qt_node_types[] = {
{FOURCC_____, "----", QT_FLAG_CONTAINER,},
{FOURCC_data, "data", 0, qtdemux_dump_unknown},
{FOURCC_free, "free", 0,},
{FOURCC_skip, "skip", 0,},
{FOURCC_SVQ3, "SVQ3", 0,},
{FOURCC_rmra, "rmra", QT_FLAG_CONTAINER,},
{FOURCC_rmda, "rmda", QT_FLAG_CONTAINER,},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment