mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
typefind: Add aac stream-format to caps
Also add the aac stream-format field on the caps when detecting it.
This commit is contained in:
parent
0fe6b6e8ab
commit
148d951fbc
1 changed files with 4 additions and 2 deletions
|
@ -686,7 +686,8 @@ aac_type_find (GstTypeFind * tf, gpointer unused)
|
||||||
G_GINT64_MODIFIER "x, framelen %u", mpegversion, c.offset, len);
|
G_GINT64_MODIFIER "x, framelen %u", mpegversion, c.offset, len);
|
||||||
gst_type_find_suggest_simple (tf, GST_TYPE_FIND_LIKELY, "audio/mpeg",
|
gst_type_find_suggest_simple (tf, GST_TYPE_FIND_LIKELY, "audio/mpeg",
|
||||||
"framed", G_TYPE_BOOLEAN, FALSE,
|
"framed", G_TYPE_BOOLEAN, FALSE,
|
||||||
"mpegversion", G_TYPE_INT, mpegversion, NULL);
|
"mpegversion", G_TYPE_INT, mpegversion,
|
||||||
|
"stream-type", G_TYPE_STRING, "adts", NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -694,7 +695,8 @@ aac_type_find (GstTypeFind * tf, gpointer unused)
|
||||||
} else if (!memcmp (c.data, "ADIF", 4)) {
|
} else if (!memcmp (c.data, "ADIF", 4)) {
|
||||||
/* ADIF header */
|
/* ADIF header */
|
||||||
gst_type_find_suggest_simple (tf, GST_TYPE_FIND_LIKELY, "audio/mpeg",
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue