Browse Source

mss1: fix decoding masked regions in interframes

Spotted by Alberto Delmás
tags/n1.0
Kostya Shishkov 13 years ago
parent
commit
ed219ed366
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mss1.c

+ 1
- 1
libavcodec/mss1.c View 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++) {


Loading…
Cancel
Save