Browse code

Merge commit '22e49e6edead9c83696f20127988f659b952ce65'

* commit '22e49e6edead9c83696f20127988f659b952ce65':
dds: Simplify postprocessing check

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>

Derek Buitenhuis authored on 2016/05/09 07:50:09
Showing 1 changed files
... ...
@@ -702,11 +702,7 @@ static int dds_decode(AVCodecContext *avctx, void *data,
702 702
     }
703 703
 
704 704
     /* Run any post processing here if needed. */
705
-    if (avctx->pix_fmt == AV_PIX_FMT_BGRA ||
706
-        avctx->pix_fmt == AV_PIX_FMT_RGBA ||
707
-        avctx->pix_fmt == AV_PIX_FMT_RGB0 ||
708
-        avctx->pix_fmt == AV_PIX_FMT_BGR0 ||
709
-        avctx->pix_fmt == AV_PIX_FMT_YA8)
705
+    if (ctx->postproc != DDS_NONE)
710 706
         run_postproc(avctx, frame);
711 707
 
712 708
     /* Frame is ready to be output. */