]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avfilter.h
Merge commit '8e4d4efc67e154fdffd65964a7cfeef740320827'
[ffmpeg] / libavfilter / avfilter.h
index 60662c19acaaf4e135afeb55159e791c78d30346..73a723d583311b1cf70ec8e5da62aa2a469434ce 100644 (file)
@@ -194,6 +194,21 @@ typedef struct AVFilter {
      *****************************************************************
      */
 
+    /**
+     * Filter pre-initialization function
+     *
+     * This callback will be called immediately after the filter context is
+     * allocated, to allow allocating and initing sub-objects.
+     *
+     * If this callback is not NULL, the uninit callback will be called on
+     * allocation failure.
+     *
+     * @return 0 on success,
+     *         AVERROR code on failure (but the code will be
+     *           dropped and treated as ENOMEM by the calling code)
+     */
+    int (*preinit)(AVFilterContext *ctx);
+
     /**
      * Filter initialization function.
      *