Browse code

dds: Simplify postprocessing check

Vittorio Giovara authored on 2016/03/30 04:00:45
Showing 1 changed files
... ...
@@ -701,9 +701,7 @@ static int dds_decode(AVCodecContext *avctx, void *data,
701 701
     }
702 702
 
703 703
     /* Run any post processing here if needed. */
704
-    if (avctx->pix_fmt == AV_PIX_FMT_BGRA ||
705
-        avctx->pix_fmt == AV_PIX_FMT_RGBA ||
706
-        avctx->pix_fmt == AV_PIX_FMT_YA8)
704
+    if (ctx->postproc != DDS_NONE)
707 705
         run_postproc(avctx, frame);
708 706
 
709 707
     /* Frame is ready to be output. */