Unified · Split
| @@ -71,7 +71,7 @@ av_cold void ff_idctdsp_init_arm(IDCTDSPContext *c, AVCodecContext *avctx, · 70 unmodified lines | ||
| 71 | 71 | ff_add_pixels_clamped = c->add_pixels_clamped; |
| 72 | 72 | |
| 73 | 73 | if (!avctx->lowres && !high_bit_depth) { |
| 74 | − if (avctx->idct_algo == FF_IDCT_AUTO || | |
| 74 | + if ((avctx->idct_algo == FF_IDCT_AUTO && !(avctx->flags & CODEC_FLAG_BITEXACT)) || | |
| 75 | 75 | avctx->idct_algo == FF_IDCT_ARM) { |
| 76 | 76 | c->idct_put = j_rev_dct_arm_put; |
| 77 | 77 | c->idct_add = j_rev_dct_arm_add; |
| @@ -33,7 +33,7 @@ av_cold void ff_idctdsp_init_armv6(IDCTDSPContext *c, AVCodecContext *avctx, · 32 unmodified lines | ||
| 33 | 33 | unsigned high_bit_depth) |
| 34 | 34 | { |
| 35 | 35 | if (!avctx->lowres && !high_bit_depth) { |
| 36 | − if (avctx->idct_algo == FF_IDCT_AUTO || | |
| 36 | + if ((avctx->idct_algo == FF_IDCT_AUTO && !(avctx->flags & CODEC_FLAG_BITEXACT)) || | |
| 37 | 37 | avctx->idct_algo == FF_IDCT_SIMPLEARMV6) { |
| 38 | 38 | c->idct_put = ff_simple_idct_put_armv6; |
| 39 | 39 | c->idct_add = ff_simple_idct_add_armv6; |