mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
avfilter/vf_pullup: fix gray8
Fixes segfault Fixes Ticket3469 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
75621cdf5d
commit
e818ee090a
@ -256,6 +256,8 @@ static int alloc_buffer(PullupContext *s, PullupBuffer *b)
|
|||||||
for (i = 0; i < s->nb_planes; i++) {
|
for (i = 0; i < s->nb_planes; i++) {
|
||||||
b->planes[i] = av_malloc(s->planeheight[i] * s->planewidth[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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user