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. */