summaryrefslogtreecommitdiff
path: root/libavfilter/buffersrc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-06-17 12:36:52 +0200
committerAnton Khirnov <anton@khirnov.net>2012-06-26 13:15:26 +0200
commit0b3b95813576aeafc64813c93c6387b24e210f9a (patch)
tree49eececc608c53c5f7417acf1e22ab981e3b43f2 /libavfilter/buffersrc.c
parent6c1e065bd4a20f6bcac14667ae11d7ffee1551d9 (diff)
lavfi: remove disabled FF_API_VSRC_BUFFER_ADD_FRAME cruft
Diffstat (limited to 'libavfilter/buffersrc.c')
-rw-r--r--libavfilter/buffersrc.c20
1 files changed, 0 insertions, 20 deletions
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;