[FFmpeg-cvslog] avfilter/vf_pullup: fix gray8

Michael Niedermayer git at videolan.org
Mon Jun 23 17:55:49 CEST 2014


ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 31 03:22:20 2014 +0200| [4c9c76af8521571b3b566b0e344f5242147db3a2] | committer: Michael Niedermayer

avfilter/vf_pullup: fix gray8

Fixes segfault
Fixes Ticket3469

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit e818ee090ac53d1b333a7d6a45274f75cf1a71a1)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c9c76af8521571b3b566b0e344f5242147db3a2
---

 libavfilter/vf_pullup.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c
index 4ad441f..80f448b 100644
--- a/libavfilter/vf_pullup.c
+++ b/libavfilter/vf_pullup.c
@@ -235,6 +235,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;
 }



More information about the ffmpeg-cvslog mailing list