commit | 22e49e6edead9c83696f20127988f659b952ce65 | [log] [tgz] |
---|---|---|
author | Vittorio Giovara <[email protected]> | Tue Mar 29 19:00:45 2016 |
committer | Vittorio Giovara <[email protected]> | Wed Apr 06 16:13:50 2016 |
tree | 3f425710eefc6e97e595e51751db70126cd60d49 | |
parent | 02538636261fdec9c70f4185b23147c636f269b4 [diff] [blame] |
dds: Simplify postprocessing check
diff --git a/libavcodec/dds.c b/libavcodec/dds.c index caa629a..fcfc84e 100644 --- a/libavcodec/dds.c +++ b/libavcodec/dds.c
@@ -701,9 +701,7 @@ } /* 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. */