Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-25 01:23:10 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-26 02:08:28 +0300
commit8baa1d2209870753602ba36e522801ca5fb533e8 (patch)
tree4085c1baf226d97ac0a85d19c9040c8366a89c5a /libavfilter
parentf1dabc958e09978abdd71d3b7f1e05c742e54ab2 (diff)
avfilter/vf_paletteuse: enable skip_initial_unpaired
Fixes crash due to unprocessed input being passed through This fixes the last segfault caused by mixing 3.0 and 3.1 libs and applications Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_paletteuse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_paletteuse.c b/libavfilter/vf_paletteuse.c
index 1225a660bb..dece05a0f8 100644
--- a/libavfilter/vf_paletteuse.c
+++ b/libavfilter/vf_paletteuse.c
@@ -1003,6 +1003,7 @@ static av_cold int init(AVFilterContext *ctx)
{
PaletteUseContext *s = ctx->priv;
s->dinput.repeatlast = 1; // only 1 frame in the palette
+ s->dinput.skip_initial_unpaired = 1;
s->dinput.process = load_apply_palette;
s->set_frame = set_frame_lut[s->color_search_method][s->dither];