From b77f041dff5f669d1d297697a34023de1c33a33f Mon Sep 17 00:00:00 2001
From: Nicolas George <george@nsup.org>
Date: Mon, 17 Jul 2017 14:33:11 +0200
Subject: [PATCH] lavfi: make FFERROR_NOT_READY available to filters.

I am not entirely sure that this return code is useful,
but having and using it makes no harm.
---
 libavfilter/avfilter.c | 2 --
 libavfilter/filters.h  | 5 +++++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index e60b0247bce..185ba8df00a 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -1304,8 +1304,6 @@ static int forward_status_change(AVFilterContext *filter, AVFilterLink *in)
     return 0;
 }
 
-#define FFERROR_NOT_READY FFERRTAG('N','R','D','Y')
-
 static int ff_filter_activate_default(AVFilterContext *filter)
 {
     unsigned i;
diff --git a/libavfilter/filters.h b/libavfilter/filters.h
index 2c78d60e62f..370d99b38be 100644
--- a/libavfilter/filters.h
+++ b/libavfilter/filters.h
@@ -27,6 +27,11 @@
 
 #include "avfilter.h"
 
+/**
+ * Special return code when activate() did not do anything.
+ */
+#define FFERROR_NOT_READY FFERRTAG('N','R','D','Y')
+
 /**
  * Mark a filter ready and schedule it for activation.
  *
-- 
GitLab