avfilter/vf_pad: fix direct padding

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Andrey Turkin 2016-01-06 13:51:49 +01:00 committed by Paul B Mahol
parent 6a975cb07f
commit 149b1f7cca

View File

@ -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)