summaryrefslogtreecommitdiff
path: root/libavfilter/vf_yadif.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-01-02 11:13:25 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-01-04 11:48:53 +0100
commitb52c1d0c993a9efe78cf3f0ba7c3850f15f25d6e (patch)
treec84b2cf82a407e2329c5a64d2502371d651a1f0a /libavfilter/vf_yadif.c
parent155cdc1d05e9a5e81e0557e4b23673cc18a34ee9 (diff)
lavfi/yadif: remove unused poll_frame callback
Diffstat (limited to 'libavfilter/vf_yadif.c')
-rw-r--r--libavfilter/vf_yadif.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index b35f98d962..061b9732a9 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -301,34 +301,6 @@ static int request_frame(AVFilterLink *link)
return 0;
}
-static int poll_frame(AVFilterLink *link)
-{
- YADIFContext *yadif = link->src->priv;
- int ret, val;
-
- if (yadif->frame_pending)
- return 1;
-
- val = ff_poll_frame(link->src->inputs[0]);
- if (val <= 0)
- return val;
-
- //FIXME change API to not requre this red tape
- if (val >= 1 && !yadif->next) {
- if ((ret = ff_request_frame(link->src->inputs[0])) < 0)
- return ret;
- val = ff_poll_frame(link->src->inputs[0]);
- if (val <= 0)
- return val;
- }
- assert(yadif->next || !val);
-
- if (yadif->auto_enable && yadif->next && !yadif->next->video->interlaced)
- return val;
-
- return val * ((yadif->mode&1)+1);
-}
-
static av_cold void uninit(AVFilterContext *ctx)
{
YADIFContext *yadif = ctx->priv;
@@ -424,7 +396,6 @@ static const AVFilterPad avfilter_vf_yadif_outputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
- .poll_frame = poll_frame,
.request_frame = request_frame,
.config_props = config_props,
},