fdkaacenc: Properly terminate GEnumValue table

It should be terminated with a NULL entry, otherwise we just stray into the
realms of cryptographic libraries^W^W random memory usage.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3319>
This commit is contained in:
Edward Hervey 2022-11-04 08:09:52 +01:00 committed by GStreamer Marge Bot
parent 0213536f77
commit 8ca2a2a230

View file

@ -135,6 +135,7 @@ gst_fdk_aac_rate_control_get_type (void)
static const GEnumValue rate_control_types[] = {
{GST_FDK_AAC_RATE_CONTROL_CONSTANT_BITRATE, "Constant Bitrate", "cbr"},
{GST_FDK_AAC_RATE_CONTROL_VARIABLE_BITRATE, "Variable Bitrate", "vbr"},
{0, NULL, NULL}
};
if (!fdk_aac_rate_control_type)