diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-31 03:22:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-31 03:22:20 +0200 |
commit | e818ee090ac53d1b333a7d6a45274f75cf1a71a1 (patch) | |
tree | f51399a565bf0fc17dd1f55025e1a754e509d7be /libavfilter | |
parent | 75621cdf5d7e2ca7f6af5fbabd3ce2ed81d6cb12 (diff) | |
download | ffmpeg-e818ee090ac53d1b333a7d6a45274f75cf1a71a1.tar.gz |
avfilter/vf_pullup: fix gray8
Fixes segfault
Fixes Ticket3469
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_pullup.c | 2 |
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; } |