aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/dualinput.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-25 00:22:47 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-26 01:01:28 +0200
commitf1dabc958e09978abdd71d3b7f1e05c742e54ab2 (patch)
treef82ce6f0ea12033f902477bb4e1988baeececfca /libavfilter/dualinput.c
parent9981b70da50f0bf70e04af7697e1c06d143c43f6 (diff)
downloadffmpeg-f1dabc958e09978abdd71d3b7f1e05c742e54ab2.tar.gz
avfilter/dualinput: Add support to skip initial unpaired frames
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/dualinput.c')
-rw-r--r--libavfilter/dualinput.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/dualinput.c b/libavfilter/dualinput.c
index 1a078a25e4..44750973a6 100644
--- a/libavfilter/dualinput.c
+++ b/libavfilter/dualinput.c
@@ -66,6 +66,9 @@ int ff_dualinput_init(AVFilterContext *ctx, FFDualInputContext *s)
in[1].after = EXT_NULL;
in[1].sync = 0;
}
+ if (s->skip_initial_unpaired) {
+ in[1].before = EXT_STOP;
+ }
return ff_framesync_configure(&s->fs);
}