bluez5: aac: reject MPEG4_AAC_LTP, MPEG4_AAC_SCA in select_config

These modes are not actually supported by the code, so it should not
accept them.
This commit is contained in:
Pauli Virtanen 2021-02-09 22:28:28 +02:00
parent f977c45240
commit d57c9bd1bd

View file

@ -119,9 +119,9 @@ static int codec_select_config(const struct a2dp_codec *codec, uint32_t flags,
else if (conf.object_type & AAC_OBJECT_TYPE_MPEG4_AAC_LC) else if (conf.object_type & AAC_OBJECT_TYPE_MPEG4_AAC_LC)
conf.object_type = AAC_OBJECT_TYPE_MPEG4_AAC_LC; conf.object_type = AAC_OBJECT_TYPE_MPEG4_AAC_LC;
else if (conf.object_type & AAC_OBJECT_TYPE_MPEG4_AAC_LTP) else if (conf.object_type & AAC_OBJECT_TYPE_MPEG4_AAC_LTP)
conf.object_type = AAC_OBJECT_TYPE_MPEG4_AAC_LTP; return -ENOTSUP; /* Not supported by FDK-AAC */
else if (conf.object_type & AAC_OBJECT_TYPE_MPEG4_AAC_SCA) else if (conf.object_type & AAC_OBJECT_TYPE_MPEG4_AAC_SCA)
conf.object_type = AAC_OBJECT_TYPE_MPEG4_AAC_SCA; return -ENOTSUP; /* Not supported by FDK-AAC */
else else
return -ENOTSUP; return -ENOTSUP;