vf_fade: Fix alpha flag integration
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 24 May 2013 17:55:33 +0000 (19:55 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 24 May 2013 18:21:40 +0000 (20:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_fade.c

index 5bdec11..44170fd 100644 (file)
@@ -127,7 +127,7 @@ static int config_props(AVFilterLink *inlink)
     s->vsub = pixdesc->log2_chroma_h;
 
     s->bpp = av_get_bits_per_pixel(pixdesc) >> 3;
-    s->alpha &= pixdesc->flags & AV_PIX_FMT_FLAG_ALPHA;
+    s->alpha &= !!(pixdesc->flags & AV_PIX_FMT_FLAG_ALPHA);
     s->is_packed_rgb = ff_fill_rgba_map(s->rgba_map, inlink->format) >= 0;
 
     /* use CCIR601/709 black level for studio-level pixel non-alpha components */