aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Himsley <mark@mdsh.com>2011-03-18 14:42:29 +0000
committerAnton Khirnov <anton@khirnov.net>2011-04-25 22:45:44 +0200
commit9026b27e84f6cf6b0133d7aab5b874500bcc5313 (patch)
tree7479e9fc3a5c85b590fafbef1e6a3b86259acaef
parentba9327ea65310d9e15acb5791980a7d766c9f986 (diff)
downloadffmpeg-9026b27e84f6cf6b0133d7aab5b874500bcc5313.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. Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavfilter/vf_fade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
index b3cccbde0b..4c2cd4b38a 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++) {