[libav-commits] mss1: fix decoding masked regions in interframes

Kostya Shishkov git at libav.org
Tue Jul 10 13:58:32 CEST 2012


Module: libav
Branch: master
Commit: ed219ed36606be307403b46f969a82bf0568865b

Author:    Kostya Shishkov <kostya.shishkov at gmail.com>
Committer: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:      Tue Jul 10 13:38:56 2012 +0200

mss1: fix decoding masked regions in interframes

Spotted by Alberto Delmás

---

 libavcodec/mss1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mss1.c b/libavcodec/mss1.c
index 523a961..6eb9f14 100644
--- a/libavcodec/mss1.c
+++ b/libavcodec/mss1.c
@@ -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++) {



More information about the libav-commits mailing list