mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
faac: relace parsed with framed in aac caps
For AAC it should always be 'framed' and not 'parsed'
This commit is contained in:
parent
759ee44988
commit
62309fbfa0
1 changed files with 3 additions and 6 deletions
|
@ -90,7 +90,7 @@
|
||||||
"rate = (int) {" SAMPLE_RATES "}, " \
|
"rate = (int) {" SAMPLE_RATES "}, " \
|
||||||
"stream-format = (string) { adts, raw }, " \
|
"stream-format = (string) { adts, raw }, " \
|
||||||
"profile = (string) { main, lc }," \
|
"profile = (string) { main, lc }," \
|
||||||
"parsed = (boolean) true; "
|
"framed = (boolean) true; "
|
||||||
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
|
@ -552,7 +552,7 @@ gst_faac_configure_source_pad (GstFaac * faac, GstAudioInfo * info)
|
||||||
"channels", G_TYPE_INT, info->channels,
|
"channels", G_TYPE_INT, info->channels,
|
||||||
"rate", G_TYPE_INT, info->rate,
|
"rate", G_TYPE_INT, info->rate,
|
||||||
"stream-format", G_TYPE_STRING, (faac->outputformat ? "adts" : "raw"),
|
"stream-format", G_TYPE_STRING, (faac->outputformat ? "adts" : "raw"),
|
||||||
NULL);
|
"framed", G_TYPE_BOOLEAN, TRUE, NULL);
|
||||||
|
|
||||||
/* DecoderSpecificInfo is only available for mpegversion=4 */
|
/* DecoderSpecificInfo is only available for mpegversion=4 */
|
||||||
if (faac->mpegversion == 4) {
|
if (faac->mpegversion == 4) {
|
||||||
|
@ -585,8 +585,6 @@ gst_faac_configure_source_pad (GstFaac * faac, GstAudioInfo * info)
|
||||||
}
|
}
|
||||||
|
|
||||||
free (config);
|
free (config);
|
||||||
|
|
||||||
gst_caps_set_simple (srccaps, "framed", G_TYPE_BOOLEAN, TRUE, NULL);
|
|
||||||
} else {
|
} else {
|
||||||
const gchar *profile;
|
const gchar *profile;
|
||||||
|
|
||||||
|
@ -606,8 +604,7 @@ gst_faac_configure_source_pad (GstFaac * faac, GstAudioInfo * info)
|
||||||
profile = "lc";
|
profile = "lc";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
gst_caps_set_simple (srccaps, "profile", G_TYPE_STRING, profile,
|
gst_caps_set_simple (srccaps, "profile", G_TYPE_STRING, profile, NULL);
|
||||||
"parsed", G_TYPE_BOOLEAN, TRUE, NULL);
|
|
||||||
/* FIXME: How to get the profile for mpegversion==2? */
|
/* FIXME: How to get the profile for mpegversion==2? */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue