summaryrefslogtreecommitdiff
path: root/libavcodec/mss1.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2012-07-10 13:38:56 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-07-10 13:58:05 +0200
commited219ed36606be307403b46f969a82bf0568865b (patch)
tree45f3ded2e37f2a8fefc39263a5b684db62b4b314 /libavcodec/mss1.c
parentf39bbc9d2130bfb2b383c70105a6d54e6cadbbb5 (diff)
mss1: fix decoding masked regions in interframes
Spotted by Alberto Delmás
Diffstat (limited to 'libavcodec/mss1.c')
-rw-r--r--libavcodec/mss1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mss1.c b/libavcodec/mss1.c
index 523a9616bf..6eb9f1486e 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++) {