... | ... |
@@ -701,9 +701,7 @@ static int dds_decode(AVCodecContext *avctx, void *data, |
701 | 701 |
} |
702 | 702 |
|
703 | 703 |
/* Run any post processing here if needed. */ |
704 |
- if (avctx->pix_fmt == AV_PIX_FMT_BGRA || |
|
705 |
- avctx->pix_fmt == AV_PIX_FMT_RGBA || |
|
706 |
- avctx->pix_fmt == AV_PIX_FMT_YA8) |
|
704 |
+ if (ctx->postproc != DDS_NONE) |
|
707 | 705 |
run_postproc(avctx, frame); |
708 | 706 |
|
709 | 707 |
/* Frame is ready to be output. */ |