Commit 22e49e6e authored by Vittorio Giovara's avatar Vittorio Giovara

dds: Simplify postprocessing check

parent 02538636
...@@ -701,9 +701,7 @@ static int dds_decode(AVCodecContext *avctx, void *data, ...@@ -701,9 +701,7 @@ static int dds_decode(AVCodecContext *avctx, void *data,
} }
/* Run any post processing here if needed. */ /* Run any post processing here if needed. */
if (avctx->pix_fmt == AV_PIX_FMT_BGRA || if (ctx->postproc != DDS_NONE)
avctx->pix_fmt == AV_PIX_FMT_RGBA ||
avctx->pix_fmt == AV_PIX_FMT_YA8)
run_postproc(avctx, frame); run_postproc(avctx, frame);
/* Frame is ready to be output. */ /* Frame is ready to be output. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment