History

avfilter: Add some missing FF_API_AVFILTERBUFFER ifdefs

Diego Biurrun committed 13 years ago

Commit 45dd1ae1 parent c2e936d2 files · +6 −0Browse files

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t