aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/internal.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-09-23 20:45:49 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-09-27 18:43:37 +0200
commit9de731e9d0f415ce8c5dc1c9079490964c244867 (patch)
tree302d1c19e7e67bc6af89f049e82501d875172fbc /libavfilter/internal.h
parent279ae1cd72a17a697af8f71a987ac89ee4aa9107 (diff)
downloadffmpeg-9de731e9d0f415ce8c5dc1c9079490964c244867.tar.gz
lavfi/sink_buffer: implement libav compatibility API.
Implement av_buffersink_read() and av_buffersink_read_samples() for ffmpeg's version of buffersink. With this change, avconv linked against ffmpeg's libraries passes the same number of tests whether it uses ffbuffersink or buffersink_old.
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r--libavfilter/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index c217883319..e82f04dbb9 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -365,4 +365,8 @@ AVFilterBufferRef *ff_copy_buffer_ref(AVFilterLink *outlink,
#define FF_INLINK_IDX(link) ((int)((link)->dstpad - (link)->dst->input_pads))
#define FF_OUTLINK_IDX(link) ((int)((link)->srcpad - (link)->src->output_pads))
+int ff_buffersink_read_compat(AVFilterContext *ctx, AVFilterBufferRef **buf);
+int ff_buffersink_read_samples_compat(AVFilterContext *ctx, AVFilterBufferRef **pbuf,
+ int nb_samples);
+
#endif /* AVFILTER_INTERNAL_H */