diff mbox

[FFmpeg-devel,15/17] lavfi: make two functions static.

Message ID 20161229143403.2851-15-george@nsup.org
State Accepted
Headers show

Commit Message

Nicolas George Dec. 29, 2016, 2:34 p.m. UTC
ff_request_frame_to_filter() and ff_filter_frame_to_filter()
are only used in avfilter.c.

Signed-off-by: Nicolas George <george@nsup.org>
---
 libavfilter/avfilter.c | 4 ++--
 libavfilter/internal.h | 4 ----
 2 files changed, 2 insertions(+), 6 deletions(-)


Unchanged.

Comments

Michael Niedermayer Dec. 29, 2016, 7:52 p.m. UTC | #1
On Thu, Dec 29, 2016 at 03:34:01PM +0100, Nicolas George wrote:
> ff_request_frame_to_filter() and ff_filter_frame_to_filter()
> are only used in avfilter.c.
> 
> Signed-off-by: Nicolas George <george@nsup.org>
> ---
>  libavfilter/avfilter.c | 4 ++--
>  libavfilter/internal.h | 4 ----
>  2 files changed, 2 insertions(+), 6 deletions(-)
> 
> 
> Unchanged.

should be ok

thx

[...]
diff mbox

Patch

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 680ecf8f95..90544848da 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -428,7 +428,7 @@  int ff_request_frame(AVFilterLink *link)
     return 0;
 }
 
-int ff_request_frame_to_filter(AVFilterLink *link)
+static int ff_request_frame_to_filter(AVFilterLink *link)
 {
     int ret = -1;
 
@@ -1248,7 +1248,7 @@  static int take_samples(AVFilterLink *link, unsigned min, unsigned max,
     return 0;
 }
 
-int ff_filter_frame_to_filter(AVFilterLink *link)
+static int ff_filter_frame_to_filter(AVFilterLink *link)
 {
     AVFrame *frame = NULL;
     AVFilterContext *dst = link->dst;
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 69048144f7..46a15fa72d 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -340,10 +340,6 @@  int ff_poll_frame(AVFilterLink *link);
  */
 int ff_request_frame(AVFilterLink *link);
 
-int ff_request_frame_to_filter(AVFilterLink *link);
-
-int ff_filter_frame_to_filter(AVFilterLink *link);
-
 #define AVFILTER_DEFINE_CLASS(fname)            \
     static const AVClass fname##_class = {      \
         .class_name = #fname,                   \