diff options
author | Mark Himsley <mark@mdsh.com> | 2011-03-18 14:42:29 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-03-18 23:25:33 +0100 |
commit | 1527e689cfe3d1f0062f7d3935bad6ed027b3bc8 (patch) | |
tree | 7f3f65c5fd53732dbf5280121f2ef057e0b0bc74 /libavfilter | |
parent | a96c0059d8da241a39ec7283dacf3161964733d8 (diff) | |
download | ffmpeg-1527e689cfe3d1f0062f7d3935bad6ed027b3bc8.tar.gz |
fade: make draw_slice() chroma check against planes 1 and 2
draw_slice() checks that planes 0 and 1 of AVFilterBufferRef's data
are not NULL before manipulating planes 1 and 2. This patch makes the
check against planes 1 and 2. More senseful and possibly more robust.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_fade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c index 203a18656e..4a8f6172f0 100644 --- a/libavfilter/vf_fade.c +++ b/libavfilter/vf_fade.c @@ -114,7 +114,7 @@ static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir) } } - if (outpic->data[0] && outpic->data[1]) { + if (outpic->data[1] && outpic->data[2]) { /* chroma planes */ for (plane = 1; plane < 3; plane++) { for (i = 0; i < h; i++) { |