avcodec/qdrw: don't overwrite bpp when checking its value
authorJames Almer <jamrial@gmail.com>
Tue, 21 Feb 2017 23:21:52 +0000 (20:21 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 21 Feb 2017 23:21:52 +0000 (20:21 -0300)
Finishes fixing ticket #6171

libavcodec/qdrw.c

index 41da4af..e3d69c2 100644 (file)
@@ -405,9 +405,9 @@ static int decode_frame(AVCodecContext *avctx,
 
             if (avctx->pix_fmt == AV_PIX_FMT_RGB555)
                 ret = decode_rle16(avctx, p, &gbc);
-            else if (bpp = 2)
+            else if (bpp == 2)
                 ret = decode_rle_bpp2(avctx, p, &gbc);
-            else if (bpp = 4)
+            else if (bpp == 4)
                 ret = decode_rle_bpp4(avctx, p, &gbc);
             else
                 ret = decode_rle(avctx, p, &gbc, bppcnt);