mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-13 10:10:03 +00:00
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.
This commit is contained in:
parent
a96c0059d8
commit
1527e689cf
@ -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 */
|
/* chroma planes */
|
||||||
for (plane = 1; plane < 3; plane++) {
|
for (plane = 1; plane < 3; plane++) {
|
||||||
for (i = 0; i < h; i++) {
|
for (i = 0; i < h; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user