diff options
Diffstat (limited to 'libavcodec/dds.c')
-rw-r--r-- | libavcodec/dds.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/dds.c b/libavcodec/dds.c index bd9b93bdee..5468a453af 100644 --- a/libavcodec/dds.c +++ b/libavcodec/dds.c @@ -702,11 +702,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_RGB0 || - avctx->pix_fmt == AV_PIX_FMT_BGR0 || - avctx->pix_fmt == AV_PIX_FMT_YA8) + if (ctx->postproc != DDS_NONE) run_postproc(avctx, frame); /* Frame is ready to be output. */ |