summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavfilter/vf_pullup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c
index 9b9064c..13e0625 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;
}
OpenPOWER on IntegriCloud