Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-31 05:22:20 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-03-31 05:22:20 +0400
commite818ee090ac53d1b333a7d6a45274f75cf1a71a1 (patch)
treef51399a565bf0fc17dd1f55025e1a754e509d7be
parent75621cdf5d7e2ca7f6af5fbabd3ce2ed81d6cb12 (diff)
avfilter/vf_pullup: fix gray8
Fixes segfault Fixes Ticket3469 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 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;
}