diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-06-26 15:52:32 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-06-28 22:27:05 +0200 |
commit | b0fdd3489a6f5e63ee494245bb34eccf138b17d3 (patch) | |
tree | f94d291085a3e4c075eb44f1a327c5f363fbdb97 /libavfilter/buffersrc.h | |
parent | cd8bef969ab30b6008387cbffa242bf38a449d9d (diff) | |
download | ffmpeg-b0fdd3489a6f5e63ee494245bb34eccf138b17d3.tar.gz |
lavfi: deprecate av_buffersrc_buffer() function
Favor av_buffersrc_add_ref() instead, which is more powerful.
Diffstat (limited to 'libavfilter/buffersrc.h')
-rw-r--r-- | libavfilter/buffersrc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h index adfb33022f..a23e48f677 100644 --- a/libavfilter/buffersrc.h +++ b/libavfilter/buffersrc.h @@ -63,14 +63,18 @@ int av_buffersrc_add_ref(AVFilterContext *buffer_src, */ unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src); +#ifdef FF_API_BUFFERSRC_BUFFER /** * Add a buffer to the filtergraph s. * * @param buf buffer containing frame data to be passed down the filtergraph. * This function will take ownership of buf, the user must not free it. * A NULL buf signals EOF -- i.e. no more frames will be sent to this filter. + * @deprecated Use av_buffersrc_add_ref(s, picref, AV_BUFFERSRC_FLAG_NO_COPY) instead. */ +attribute_deprecated int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf); +#endif /** * Add a frame to the buffer source. |