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>
... | ... |
@@ -1003,6 +1003,7 @@ static av_cold int init(AVFilterContext *ctx) |
1003 | 1003 |
{ |
1004 | 1004 |
PaletteUseContext *s = ctx->priv; |
1005 | 1005 |
s->dinput.repeatlast = 1; // only 1 frame in the palette |
1006 |
+ s->dinput.skip_initial_unpaired = 1; |
|
1006 | 1007 |
s->dinput.process = load_apply_palette; |
1007 | 1008 |
|
1008 | 1009 |
s->set_frame = set_frame_lut[s->color_search_method][s->dither]; |