txd: Fix order of operations.
authorAlex Converse <alex.converse@gmail.com>
Mon, 28 Nov 2011 00:17:13 +0000 (16:17 -0800)
committerAlex Converse <alex.converse@gmail.com>
Mon, 28 Nov 2011 19:22:36 +0000 (11:22 -0800)
libavcodec/txd.c

index 74ffff6..734062a 100644 (file)
@@ -108,7 +108,8 @@ static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
     } else if (depth == 16) {
         switch (d3d_format) {
         case 0:
-            if (!flags&1) goto unsupported;
+            if (!(flags & 1))
+                goto unsupported;
         case FF_S3TC_DXT1:
             ff_decode_dxt1(cur, ptr, w, h, stride);
             break;