Commit a2780518 authored by Alex Converse's avatar Alex Converse

txd: Fix order of operations.

parent b94a3b28
...@@ -108,7 +108,8 @@ static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, ...@@ -108,7 +108,8 @@ static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
} else if (depth == 16) { } else if (depth == 16) {
switch (d3d_format) { switch (d3d_format) {
case 0: case 0:
if (!flags&1) goto unsupported; if (!(flags & 1))
goto unsupported;
case FF_S3TC_DXT1: case FF_S3TC_DXT1:
ff_decode_dxt1(cur, ptr, w, h, stride); ff_decode_dxt1(cur, ptr, w, h, stride);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment