[FFmpeg-cvslog] avfilter/vf_paletteuse: enable skip_initial_unpaired

Michael Niedermayer git at videolan.org
Sun Jun 26 03:07:30 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Jun 25 00:23:10 2016 +0200| [8baa1d2209870753602ba36e522801ca5fb533e8] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8baa1d2209870753602ba36e522801ca5fb533e8
---

 libavfilter/vf_paletteuse.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_paletteuse.c b/libavfilter/vf_paletteuse.c
index 1225a66..dece05a 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];



More information about the ffmpeg-cvslog mailing list