X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_pad.c;h=35f955d3f73bebc3b68b03f42102e5c2383cd3a0;hb=547d41207804b5651ecb15fec7c2cfa5e42d7f2f;hp=d94ced138ba19198d432fb852c7232eaab02d201;hpb=b799619f48ba5fd07e91243f27f74638bcb875fb;p=ffmpeg diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c index d94ced138ba..35f955d3f73 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)