Commit d62984d8 authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit '22e49e6e'

* commit '22e49e6e':
  dds: Simplify postprocessing check
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents 6ebec104 22e49e6e
......@@ -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. */
......
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