From 0b3b95813576aeafc64813c93c6387b24e210f9a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 17 Jun 2012 12:36:52 +0200 Subject: lavfi: remove disabled FF_API_VSRC_BUFFER_ADD_FRAME cruft --- libavfilter/buffersrc.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'libavfilter/buffersrc.c') diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index 30e34b75fa..e1311c022a 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -29,7 +29,6 @@ #include "formats.h" #include "internal.h" #include "video.h" -#include "vsrc_buffer.h" #include "libavutil/audioconvert.h" #include "libavutil/fifo.h" @@ -70,25 +69,6 @@ typedef struct { return AVERROR(EINVAL);\ } -#if FF_API_VSRC_BUFFER_ADD_FRAME -int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, - int64_t pts, AVRational pixel_aspect) -{ - int64_t orig_pts = frame->pts; - AVRational orig_sar = frame->sample_aspect_ratio; - int ret; - - frame->pts = pts; - frame->sample_aspect_ratio = pixel_aspect; - if ((ret = av_buffersrc_write_frame(buffer_filter, frame)) < 0) - return ret; - frame->pts = orig_pts; - frame->sample_aspect_ratio = orig_sar; - - return 0; -} -#endif - int av_buffersrc_write_frame(AVFilterContext *buffer_filter, AVFrame *frame) { BufferSourceContext *c = buffer_filter->priv; -- cgit v1.2.3