swscale/swscale_internal: fix ya16 -> rgba
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 4 Aug 2014 23:43:21 +0000 (01:43 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 4 Aug 2014 23:51:11 +0000 (01:51 +0200)
Fixes Ticket644

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/swscale_internal.h

index 5caf2ae..335e1f8 100644 (file)
@@ -778,6 +778,8 @@ static av_always_inline int isALPHA(enum AVPixelFormat pix_fmt)
         || (x)==AV_PIX_FMT_YVYU422     \
         || (x)==AV_PIX_FMT_UYVY422     \
         || (x)==AV_PIX_FMT_YA8       \
+        || (x)==AV_PIX_FMT_YA16LE      \
+        || (x)==AV_PIX_FMT_YA16BE      \
         ||  isRGBinInt(x)           \
         ||  isBGRinInt(x)           \
     )