From 6647e57dcb977411a55c20faa90275103d50b8b5 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 3 Oct 2024 20:54:29 +0200 Subject: [PATCH] lavfi/avfilter: document AVFilterContext.is_disabled as private Ideally there should be three parts to the filter context - public, private to the filter, and private to generic code, but only the first and the last of these exist currently. Until the second is implemented, this is better than nothing. --- libavfilter/avfilter.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index c99fc8f912..b88b31a834 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -518,7 +518,12 @@ struct AVFilterContext { */ double *var_values; #endif - int is_disabled; ///< the enabled state from the last expression evaluation + /** + * MUST NOT be accessed from outside avfilter. + * + * the enabled state from the last expression evaluation + */ + int is_disabled; /** * For filters which will create hardware frames, sets the device the