Commit ed219ed3 authored by Kostya Shishkov's avatar Kostya Shishkov

mss1: fix decoding masked regions in interframes

Spotted by Alberto Delmás
parent f39bbc9d
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment