summaryrefslogtreecommitdiff
path: root/libavfilter/vf_pad.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-11-17 01:03:06 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-11-17 01:03:06 +0000
commitc71e9640dbe4f01cae85f166f0c166efa69113d2 (patch)
tree98f01ceb8c59855769c13e2eae596be78e94631f /libavfilter/vf_pad.c
parentb3c0fc76735f64268e6ec564fff7beb8bcbdb687 (diff)
100L fix get_video_buffer in pad filter, get_video_buffer will store wrong values for w and h
Originally committed as revision 25759 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_pad.c')
-rw-r--r--libavfilter/vf_pad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index 26fe1d683f..c385a2f1f8 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -230,6 +230,9 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *inlink, int perms, int
h + (pad->h - pad->in_h));
int plane;
+ picref->video->w = w;
+ picref->video->h = h;
+
for (plane = 0; plane < 4 && picref->data[plane]; plane++) {
int hsub = (plane == 1 || plane == 2) ? pad->hsub : 0;
int vsub = (plane == 1 || plane == 2) ? pad->vsub : 0;