mss1: fix decoding masked regions in interframes
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 10 Jul 2012 11:38:56 +0000 (13:38 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 10 Jul 2012 11:58:05 +0000 (13:58 +0200)
Spotted by Alberto Delmás

libavcodec/mss1.c

index 523a961..6eb9f14 100644 (file)
@@ -499,7 +499,7 @@ static int decode_region_masked(MSS1Context *ctx, ArithCoder *acoder,
     dst  += x + y * stride;
     mask += x + y * mask_stride;
 
-    if (mask[0] != 0xFF)
+    if (mask[0] == 0xFF)
         dst[0] = decode_top_left_pixel(acoder, pctx);
     for (j = 0; j < height; j++) {
         for (i = 0; i < width; i++) {