[FFmpeg-cvslog] avfilter/vf_pullup: fix gray8

Michael Niedermayer git at videolan.org
Thu Apr 10 05:08:39 CEST 2014


ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 31 03:22:20 2014 +0200| [5cb2a1c3f0b9e719756c7cafc32ee98ab02bd5c3] | 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=5cb2a1c3f0b9e719756c7cafc32ee98ab02bd5c3
---

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

diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c
index 73ffa68..5b448dd 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;
 }



More information about the ffmpeg-cvslog mailing list