[FFmpeg-cvslog] mss1: fix decoding masked regions in interframes

Kostya Shishkov git at videolan.org
Tue Jul 10 21:35:48 CEST 2012


ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Tue Jul 10 13:38:56 2012 +0200| [ed219ed36606be307403b46f969a82bf0568865b] | committer: Kostya Shishkov

mss1: fix decoding masked regions in interframes

Spotted by Alberto Delmás

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed219ed36606be307403b46f969a82bf0568865b
---

 libavcodec/mss1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 ffmpeg-cvslog mailing list