avfilter: Add some missing FF_API_AVFILTERBUFFER ifdefs

This commit is contained in:
Diego Biurrun 2013-07-29 20:49:53 +02:00
parent c2e936de07
commit 45dd1ae1b3
2 changed files with 6 additions and 0 deletions

View File

@ -22,7 +22,9 @@
#include "avfilter.h" #include "avfilter.h"
#include "internal.h" #include "internal.h"
#include "version.h"
#if FF_API_AVFILTERBUFFER
/* TODO: buffer pool. see comment for avfilter_default_get_video_buffer() */ /* TODO: buffer pool. see comment for avfilter_default_get_video_buffer() */
void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr) void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr)
{ {
@ -173,3 +175,4 @@ void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *s
default: break; default: break;
} }
} }
#endif /* FF_API_AVFILTERBUFFER */

View File

@ -26,6 +26,7 @@
#include "avfilter.h" #include "avfilter.h"
#include "thread.h" #include "thread.h"
#include "version.h"
#if !FF_API_AVFILTERPAD_PUBLIC #if !FF_API_AVFILTERPAD_PUBLIC
/** /**
@ -129,8 +130,10 @@ struct AVFilterInternal {
int *ret, int nb_jobs); int *ret, int nb_jobs);
}; };
#if FF_API_AVFILTERBUFFER
/** default handler for freeing audio/video buffer when there are no references left */ /** default handler for freeing audio/video buffer when there are no references left */
void ff_avfilter_default_free_buffer(AVFilterBuffer *buf); void ff_avfilter_default_free_buffer(AVFilterBuffer *buf);
#endif
/** Tell is a format is contained in the provided list terminated by -1. */ /** Tell is a format is contained in the provided list terminated by -1. */
int ff_fmt_is_in(int fmt, const int *fmts); int ff_fmt_is_in(int fmt, const int *fmts);