summaryrefslogtreecommitdiff
path: root/libavfilter/buffersrc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-06-23 16:18:42 +0200
committerPaul B Mahol <onemda@gmail.com>2017-06-23 16:18:42 +0200
commit04aa09c4bcf2d5a634a35da3a3ae3fc1abe30ef8 (patch)
treeaee9c73a38f1d89ad9b2313d1870cbc265376882 /libavfilter/buffersrc.c
parent9f26d670e447767683ed21b1b5ac16423eba4c72 (diff)
Revert "lavfi/buffersrc: push the frame deeper if requested."
Fixes framesync filters with shortest option enabled. This reverts commit 0ff5567a30be6d7c804e95997ae282d6bacd76c3.
Diffstat (limited to 'libavfilter/buffersrc.c')
-rw-r--r--libavfilter/buffersrc.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index e8f59c2de7..587b29b91a 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -173,20 +173,6 @@ int attribute_align_arg av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFra
return ret;
}
-static int push_frame(AVFilterGraph *graph)
-{
- int ret;
-
- while (1) {
- ret = ff_filter_graph_run_once(graph);
- if (ret == AVERROR(EAGAIN))
- break;
- if (ret < 0)
- return ret;
- }
- return 0;
-}
-
static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
AVFrame *frame, int flags)
{
@@ -199,11 +185,6 @@ static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
if (!frame) {
s->eof = 1;
ff_avfilter_link_set_in_status(ctx->outputs[0], AVERROR_EOF, AV_NOPTS_VALUE);
- if ((flags & AV_BUFFERSRC_FLAG_PUSH)) {
- ret = push_frame(ctx->graph);
- if (ret < 0)
- return ret;
- }
return 0;
} else if (s->eof)
return AVERROR(EINVAL);
@@ -258,12 +239,6 @@ static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
if ((ret = ctx->output_pads[0].request_frame(ctx->outputs[0])) < 0)
return ret;
- if ((flags & AV_BUFFERSRC_FLAG_PUSH)) {
- ret = push_frame(ctx->graph);
- if (ret < 0)
- return ret;
- }
-
return 0;
}