[FFmpeg-cvslog] avfilter/vf_pad: fix direct padding

Andrey Turkin git at videolan.org
Wed Jan 6 16:43:55 CET 2016


ffmpeg | branch: master | Andrey Turkin <andrey.turkin at gmail.com> | Wed Jan  6 13:51:49 2016 +0100| [149b1f7ccafaee66c5370bce980a1569c3ec3db5] | committer: Paul B Mahol

avfilter/vf_pad: fix direct padding

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavfilter/vf_pad.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index d94ced1..35f955d 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -203,7 +203,7 @@ static AVFrame *get_video_buffer(AVFilterLink *inlink, int w, int h)
 
     AVFrame *frame = ff_get_video_buffer(inlink->dst->outputs[0],
                                          w + (s->w - s->in_w),
-                                         h + (s->h - s->in_h));
+                                         h + (s->h - s->in_h) + (s->x > 0));
     int plane;
 
     if (!frame)



More information about the ffmpeg-cvslog mailing list