summaryrefslogtreecommitdiff
path: root/libavcodec/dds.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-03-29 21:00:45 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-04-06 12:13:50 -0400
commit22e49e6edead9c83696f20127988f659b952ce65 (patch)
tree3f425710eefc6e97e595e51751db70126cd60d49 /libavcodec/dds.c
parent02538636261fdec9c70f4185b23147c636f269b4 (diff)
dds: Simplify postprocessing check
Diffstat (limited to 'libavcodec/dds.c')
-rw-r--r--libavcodec/dds.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/dds.c b/libavcodec/dds.c
index caa629a486..fcfc84e28c 100644
--- a/libavcodec/dds.c
+++ b/libavcodec/dds.c
@@ -701,9 +701,7 @@ static int dds_decode(AVCodecContext *avctx, void *data,
}
/* Run any post processing here if needed. */
- if (avctx->pix_fmt == AV_PIX_FMT_BGRA ||
- avctx->pix_fmt == AV_PIX_FMT_RGBA ||
- avctx->pix_fmt == AV_PIX_FMT_YA8)
+ if (ctx->postproc != DDS_NONE)
run_postproc(avctx, frame);
/* Frame is ready to be output. */