fdkaacenc: Properly terminate GEnumValue table
authorEdward Hervey <edward@centricular.com>
Fri, 4 Nov 2022 07:09:52 +0000 (08:09 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 4 Nov 2022 17:59:21 +0000 (17:59 +0000)
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>

subprojects/gst-plugins-bad/ext/fdkaac/gstfdkaacenc.c

index abbf5d1..088c26f 100644 (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)