Unified · Split
| @@ -22,7 +22,9 @@ · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | #include "avfilter.h" |
| 24 | 24 | #include "internal.h" |
| 25 | +#include "version.h" | |
| 25 | 26 | |
| 27 | +#if FF_API_AVFILTERBUFFER | |
| 26 | 28 | /* TODO: buffer pool. see comment for avfilter_default_get_video_buffer() */ |
| 27 | 29 | void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr) |
| 28 | 30 | { |
| @@ -173,3 +175,4 @@ void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *s · 144 unmodified lines | ||
| 173 | 175 | default: break; |
| 174 | 176 | } |
| 175 | 177 | } |
| 178 | +#endif /* FF_API_AVFILTERBUFFER */ | |
| @@ -26,6 +26,7 @@ · 25 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | #include "avfilter.h" |
| 28 | 28 | #include "thread.h" |
| 29 | +#include "version.h" | |
| 29 | 30 | |
| 30 | 31 | #if !FF_API_AVFILTERPAD_PUBLIC |
| 31 | 32 | /** |
| @@ -129,8 +130,10 @@ struct AVFilterInternal { · 97 unmodified lines | ||
| 129 | 130 | int *ret, int nb_jobs); |
| 130 | 131 | }; |
| 131 | 132 | |
| 133 | +#if FF_API_AVFILTERBUFFER | |
| 132 | 134 | /** default handler for freeing audio/video buffer when there are no references left */ |
| 133 | 135 | void ff_avfilter_default_free_buffer(AVFilterBuffer *buf); |
| 136 | +#endif | |
| 134 | 137 | |
| 135 | 138 | /** Tell is a format is contained in the provided list terminated by -1. */ |
| 136 | 139 | int ff_fmt_is_in(int fmt, const int *fmts); |