diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-06-25 20:24:50 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-06-26 11:40:08 +0200 |
commit | 8dd0e87d7b9b17d613c646c396c7b7c1a6293111 (patch) | |
tree | 1bfab33ebed64db0f3442182504b0ad31cd0b760 /libavfilter/sink_buffer.c | |
parent | f054dbee6cc5195ba8f37823a494dab2d26e7cca (diff) | |
download | ffmpeg-streaming-8dd0e87d7b9b17d613c646c396c7b7c1a6293111.zip ffmpeg-streaming-8dd0e87d7b9b17d613c646c396c7b7c1a6293111.tar.gz |
lavfi: remove old video sink API
It was deprecated since a long time and removed after the 2->3 major
bump.
Diffstat (limited to 'libavfilter/sink_buffer.c')
-rw-r--r-- | libavfilter/sink_buffer.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c index c82bff0..b6410a2 100644 --- a/libavfilter/sink_buffer.c +++ b/libavfilter/sink_buffer.c @@ -161,32 +161,20 @@ int av_buffersink_poll_frame(AVFilterContext *ctx) return av_fifo_size(buf->fifo)/sizeof(AVFilterBufferRef *) + ff_poll_frame(inlink); } -#if FF_API_OLD_VSINK_API -int av_vsink_buffer_get_video_buffer_ref(AVFilterContext *ctx, - AVFilterBufferRef **picref, int flags) -{ - return av_buffersink_get_buffer_ref(ctx, picref, flags); -} -#endif - #if CONFIG_BUFFERSINK_FILTER static av_cold int vsink_init(AVFilterContext *ctx, const char *args, void *opaque) { BufferSinkContext *buf = ctx->priv; - av_unused AVBufferSinkParams *params; + AVBufferSinkParams *params = (AVBufferSinkParams *)opaque; if (!opaque) { av_log(ctx, AV_LOG_WARNING, "No opaque field provided\n"); buf->pixel_fmts = NULL; } else { -#if FF_API_OLD_VSINK_API - const int *pixel_fmts = (const enum PixelFormat *)opaque; -#else - params = (AVBufferSinkParams *)opaque; const int *pixel_fmts = params->pixel_fmts; -#endif + buf->pixel_fmts = ff_copy_int_list(pixel_fmts); if (!buf->pixel_fmts) return AVERROR(ENOMEM); |