Browse Source

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
tags/n0.8
Baptiste Coudurier 14 years ago
parent
commit
c71e9640db
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavfilter/vf_pad.c

+ 3
- 0
libavfilter/vf_pad.c View File

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


Loading…
Cancel
Save