mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mdec: stop preferring the simple IDCT.
This was added ine3e3c82555
, 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 in42dd1434bf
, meaning this workaround is no longer necessary. In practical terms, before42dd1434bf
, the PSNR between decodes of the fate-mdec using simple (C) or simplemmx IDCTs was 35. After42dd1434bf
, it's 90.
This commit is contained in:
parent
42dd1434bf
commit
e639d09199
@ -215,9 +215,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
MDECContext * const a = avctx->priv_data;
|
MDECContext * const a = avctx->priv_data;
|
||||||
int i;
|
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_width = (avctx->coded_width + 15) / 16;
|
||||||
a->mb_height = (avctx->coded_height + 15) / 16;
|
a->mb_height = (avctx->coded_height + 15) / 16;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user