On 04/20/2011 03:45 PM, Anton Khirnov wrote:

> From: Mark Himsley <[email protected]>
> 
> 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 <[email protected]>
> ---
>  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 b3cccbd..4c2cd4b 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++) {


looks ok.

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to