[FFmpeg-cvslog] dds: Simplify postprocessing check

Vittorio Giovara git at videolan.org
Mon May 9 00:55:50 CEST 2016


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Mar 29 21:00:45 2016 +0200| [22e49e6edead9c83696f20127988f659b952ce65] | committer: Vittorio Giovara

dds: Simplify postprocessing check

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=22e49e6edead9c83696f20127988f659b952ce65
---

 libavcodec/dds.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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



More information about the ffmpeg-cvslog mailing list