Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2017-06-21 16:01:20 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2017-06-21 16:01:32 +0300
commite639d09199dd7818a24786fb6e8ddd048ede4372 (patch)
tree7a9692883961f13f804c9ffef8db52baaf1bc7f7 /libavcodec/mdec.c
parent42dd1434bf6a7230e4175c08fcfabc3ba51a0463 (diff)
mdec: stop preferring the simple IDCT.
This was added in e3e3c82555e2382125195c1ba9f34b5a43299abc, probably as a workaround for the fact that the quant table was not permutated and the IDCT coefficients are, meaning that you'd only get correct reconstruction if the IDCT permutation was an identity matrix, which happens to be the case when you use the simple IDCT. The quant table permutation bug was fixed in 42dd1434bf6a7230e4175c08fcfabc3ba51a0463, meaning this workaround is no longer necessary. In practical terms, before 42dd1434bf6a7230e4175c08fcfabc3ba51a0463, the PSNR between decodes of the fate-mdec using simple (C) or simplemmx IDCTs was 35. After 42dd1434bf6a7230e4175c08fcfabc3ba51a0463, it's 90.
Diffstat (limited to 'libavcodec/mdec.c')
-rw-r--r--libavcodec/mdec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index fabc19fd9a..59658b331d 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -215,9 +215,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
MDECContext * const a = avctx->priv_data;
int i;
- if (avctx->idct_algo == FF_IDCT_AUTO)
- avctx->idct_algo = FF_IDCT_SIMPLE;
-
a->mb_width = (avctx->coded_width + 15) / 16;
a->mb_height = (avctx->coded_height + 15) / 16;