From e818ee090ac53d1b333a7d6a45274f75cf1a71a1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 31 Mar 2014 03:22:20 +0200 Subject: [PATCH] avfilter/vf_pullup: fix gray8 Fixes segfault Fixes Ticket3469 Signed-off-by: Michael Niedermayer --- libavfilter/vf_pullup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c index 9b9064c649..13e06253c7 100644 --- a/libavfilter/vf_pullup.c +++ b/libavfilter/vf_pullup.c @@ -256,6 +256,8 @@ static int alloc_buffer(PullupContext *s, PullupBuffer *b) for (i = 0; i < s->nb_planes; i++) { b->planes[i] = av_malloc(s->planeheight[i] * s->planewidth[i]); } + if (s->nb_planes == 1) + b->planes[1] = av_malloc(4*256); return 0; }