Hi

http://git.libav.org/?p=libav.git;a=commitdiff;h=6fba14eecbc7849efc9951866103e21d99713d88
breaks build with CONFIG_SMALL defined. Attached Patch corrects this.

Regards
Naufal
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 64ba97e..35d0612 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -890,7 +890,7 @@ yuv2rgb_write(uint8_t *_dest, int i, int Y1, int Y2,
         const uint32_t *b = (const uint32_t *) _b;
 
 #if CONFIG_SMALL
-        int sh = hasAlpha ? ((fmt == PIX_FMT_RGB32_1 || fmt == PIX_FMT_BGR32_1) ? 0 : 24) : 0;
+        int sh = hasAlpha ? ((target == PIX_FMT_RGB32_1 || target == PIX_FMT_BGR32_1) ? 0 : 24) : 0;
 
         dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (hasAlpha ? A1 << sh : 0);
         dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (hasAlpha ? A2 << sh : 0);
-- 
1.7.0.4

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

Reply via email to