diff options
author | Alex Converse <alex.converse@gmail.com> | 2011-11-27 16:17:13 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-11-28 11:22:36 -0800 |
commit | a27805189ba505834c74ec72edc5fddf18f5cfa9 (patch) | |
tree | dd4ef17935da3b5aa4bfda3492f3e15cb188a78e /libavcodec | |
parent | b94a3b288e3f321e3eba7af099b9bbf01a6e2e74 (diff) | |
download | ffmpeg-a27805189ba505834c74ec72edc5fddf18f5cfa9.tar.gz |
txd: Fix order of operations.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/txd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |