diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-07-10 13:38:56 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-07-10 13:58:05 +0200 |
commit | ed219ed36606be307403b46f969a82bf0568865b (patch) | |
tree | 45f3ded2e37f2a8fefc39263a5b684db62b4b314 | |
parent | f39bbc9d2130bfb2b383c70105a6d54e6cadbbb5 (diff) | |
download | ffmpeg-ed219ed36606be307403b46f969a82bf0568865b.tar.gz |
mss1: fix decoding masked regions in interframes
Spotted by Alberto Delmás
-rw-r--r-- | libavcodec/mss1.c | 2 |
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++) { |