Commit 4f09194ac2 for ffmpeg
commit 4f09194ac2caae0e966863f5aa3d7692a239f969
Author: Ramiro Polla <ramiro.polla@gmail.com>
Date: Thu Oct 8 14:45:26 2026 +0200
avfilter/af_lv2: NULL-terminate array of features the host supports
The documentation for lilv_plugin_instantiate() specifies that the array
of features the host supports should be NULL-terminated.
diff --git a/libavfilter/af_lv2.c b/libavfilter/af_lv2.c
index c34f6eb30c..cd30e7ac28 100644
--- a/libavfilter/af_lv2.c
+++ b/libavfilter/af_lv2.c
@@ -67,7 +67,7 @@ typedef struct LV2Context {
LV2_Feature unmap_feature;
LV2_Atom_Sequence seq_in[2];
LV2_Atom_Sequence *seq_out;
- const LV2_Feature *features[5];
+ const LV2_Feature *features[6];
float *mins;
float *maxes;
@@ -285,6 +285,7 @@ static int config_output(AVFilterLink *outlink)
s->features[2] = &buf_size_features[0];
s->features[3] = &buf_size_features[1];
s->features[4] = &buf_size_features[2];
+ s->features[5] = NULL;
if (ctx->nb_inputs) {
AVFilterLink *inlink = ctx->inputs[0];