summaryrefslogtreecommitdiff
path: root/libavfilter/buffersrc.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-06-22 11:41:14 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-06-23 00:42:51 +0200
commitc0ca840837b3fcd575381407bba7a8347eaeee36 (patch)
treee8a481a95390ee5c8ed8100ef297108b46a37f66 /libavfilter/buffersrc.c
parent39e019e8c1eeca2922d4f0f2b85e2e93909ae2ae (diff)
lavfi/buffer: remove unused function av_vsrc_buffer_add_frame_alt()
Diffstat (limited to 'libavfilter/buffersrc.c')
-rw-r--r--libavfilter/buffersrc.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 01459a3a2f..fc71f59cea 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -112,25 +112,6 @@ static AVFilterBufferRef *copy_buffer_ref(AVFilterContext *ctx,
return buf;
}
-#if FF_API_VSRC_BUFFER_ADD_FRAME
-static int av_vsrc_buffer_add_frame_alt(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_add_frame(AVFilterContext *buffer_src,
const AVFrame *frame, int flags)
{