[FFmpeg-cvslog] avfilter/af_asetnsamples: add commands support

Paul B Mahol git at videolan.org
Sun May 7 18:34:47 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri May  5 20:48:10 2023 +0200| [03800bcaf3f341de4307f47626f64c0a2545c09c] | committer: Paul B Mahol

avfilter/af_asetnsamples: add commands support

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03800bcaf3f341de4307f47626f64c0a2545c09c
---

 libavfilter/af_asetnsamples.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/af_asetnsamples.c b/libavfilter/af_asetnsamples.c
index 74d3fde35e..fe6d40f9ca 100644
--- a/libavfilter/af_asetnsamples.c
+++ b/libavfilter/af_asetnsamples.c
@@ -39,7 +39,7 @@ typedef struct ASNSContext {
 } ASNSContext;
 
 #define OFFSET(x) offsetof(ASNSContext, x)
-#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
+#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 
 static const AVOption asetnsamples_options[] = {
     { "nb_out_samples", "set the number of per-frame output samples", OFFSET(nb_out_samples), AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX, FLAGS },
@@ -123,4 +123,5 @@ const AVFilter ff_af_asetnsamples = {
     FILTER_INPUTS(asetnsamples_inputs),
     FILTER_OUTPUTS(asetnsamples_outputs),
     .activate    = activate,
+    .process_command = ff_filter_process_command,
 };



More information about the ffmpeg-cvslog mailing list