Commit e818ee09 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_pullup: fix gray8

Fixes segfault
Fixes Ticket3469
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 75621cdf
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment