mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
amcaudiodec: audio/mpeg is always MPEG 1 layer 3
Configuring e.g. layer 2 on such a decoder usually fails unless it additionally also accepts audio/mpeg-L2.
This commit is contained in:
parent
aa6ee77297
commit
93bce7aeb7
1 changed files with 1 additions and 0 deletions
|
@ -3776,6 +3776,7 @@ gst_amc_codec_info_to_caps (const GstAmcCodecInfo * codec_info,
|
||||||
if (strcmp (type->mime, "audio/mpeg") == 0) {
|
if (strcmp (type->mime, "audio/mpeg") == 0) {
|
||||||
tmp = gst_structure_new ("audio/mpeg",
|
tmp = gst_structure_new ("audio/mpeg",
|
||||||
"mpegversion", G_TYPE_INT, 1,
|
"mpegversion", G_TYPE_INT, 1,
|
||||||
|
"layer", G_TYPE_INT, 3,
|
||||||
"rate", GST_TYPE_INT_RANGE, 1, G_MAXINT,
|
"rate", GST_TYPE_INT_RANGE, 1, G_MAXINT,
|
||||||
"channels", GST_TYPE_INT_RANGE, 1, G_MAXINT,
|
"channels", GST_TYPE_INT_RANGE, 1, G_MAXINT,
|
||||||
"parsed", G_TYPE_BOOLEAN, TRUE, NULL);
|
"parsed", G_TYPE_BOOLEAN, TRUE, NULL);
|
||||||
|
|
Loading…
Reference in a new issue