Commit 148d951f authored by Thiago Santos's avatar Thiago Santos
Browse files

typefind: Add aac stream-format to caps

Also add the aac stream-format field on the caps when
detecting it.
parent 0fe6b6e8
......@@ -686,7 +686,8 @@ aac_type_find (GstTypeFind * tf, gpointer unused)
G_GINT64_MODIFIER "x, framelen %u", mpegversion, c.offset, len);
gst_type_find_suggest_simple (tf, GST_TYPE_FIND_LIKELY, "audio/mpeg",
"framed", G_TYPE_BOOLEAN, FALSE,
"mpegversion", G_TYPE_INT, mpegversion, NULL);
"mpegversion", G_TYPE_INT, mpegversion,
"stream-type", G_TYPE_STRING, "adts", NULL);
break;
}
......@@ -694,7 +695,8 @@ aac_type_find (GstTypeFind * tf, gpointer unused)
} else if (!memcmp (c.data, "ADIF", 4)) {
/* ADIF header */
gst_type_find_suggest_simple (tf, GST_TYPE_FIND_LIKELY, "audio/mpeg",
"framed", G_TYPE_BOOLEAN, FALSE, "mpegversion", G_TYPE_INT, 4, NULL);
"framed", G_TYPE_BOOLEAN, FALSE, "mpegversion", G_TYPE_INT, 4,
"stream-format", G_TYPE_STRING, "adif", NULL);
break;
}
......
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