[FFmpeg-devel] [PATCH 4/7] lavfi/avfilter: document AVFilterContext.is_disabled as private

Anton Khirnov anton at khirnov.net
Thu Oct 3 22:31:24 EEST 2024


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 a255d71700..d13a2df732 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -512,7 +512,12 @@ struct AVFilterContext {
     ///< @deprecated unused
     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
-- 
2.43.0



More information about the ffmpeg-devel mailing list