diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-07-29 20:49:53 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-07-31 19:23:00 +0200 |
commit | 45dd1ae1b3c18331f3db2293a9135bc5851e553f (patch) | |
tree | 08ca1a93d8fe836b5516dcc934070f5bb203cb52 /libavfilter | |
parent | c2e936de07d054bf476e60445b453bf6b4836820 (diff) | |
download | ffmpeg-45dd1ae1b3c18331f3db2293a9135bc5851e553f.tar.gz |
avfilter: Add some missing FF_API_AVFILTERBUFFER ifdefs
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/buffer.c | 3 | ||||
-rw-r--r-- | libavfilter/internal.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c index 8eb3ce36d1..88b5f22523 100644 --- a/libavfilter/buffer.c +++ b/libavfilter/buffer.c @@ -22,7 +22,9 @@ #include "avfilter.h" #include "internal.h" +#include "version.h" +#if FF_API_AVFILTERBUFFER /* TODO: buffer pool. see comment for avfilter_default_get_video_buffer() */ void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr) { @@ -173,3 +175,4 @@ void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *s default: break; } } +#endif /* FF_API_AVFILTERBUFFER */ diff --git a/libavfilter/internal.h b/libavfilter/internal.h index bdbbe4498a..40b33afd08 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -26,6 +26,7 @@ #include "avfilter.h" #include "thread.h" +#include "version.h" #if !FF_API_AVFILTERPAD_PUBLIC /** @@ -129,8 +130,10 @@ struct AVFilterInternal { int *ret, int nb_jobs); }; +#if FF_API_AVFILTERBUFFER /** default handler for freeing audio/video buffer when there are no references left */ void ff_avfilter_default_free_buffer(AVFilterBuffer *buf); +#endif /** Tell is a format is contained in the provided list terminated by -1. */ int ff_fmt_is_in(int fmt, const int *fmts); |