From a27805189ba505834c74ec72edc5fddf18f5cfa9 Mon Sep 17 00:00:00 2001
From: Alex Converse <alex.converse@gmail.com>
Date: Sun, 27 Nov 2011 16:17:13 -0800
Subject: txd: Fix order of operations.

---
 libavcodec/txd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/txd.c b/libavcodec/txd.c
index 74ffff66b3..734062aca6 100644
--- a/libavcodec/txd.c
+++ b/libavcodec/txd.c
@@ -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;
-- 
cgit v1.2.3