]> git.sesse.net Git - ffmpeg/commitdiff
dds: Simplify postprocessing check
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 29 Mar 2016 19:00:45 +0000 (21:00 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 6 Apr 2016 16:13:50 +0000 (12:13 -0400)
libavcodec/dds.c

index caa629a486cab3ccfc6022c6a4b94335c4d31cc0..fcfc84e28cc2a2da4204665e571b992af968ff71 100644 (file)
@@ -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. */