This avoids triggering code that only works with the default IDCT.
---

Fixes FATE with mmxext/sse2 disabled.

 libavcodec/xvididct.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/xvididct.c b/libavcodec/xvididct.c
index 1453e51..7f130ba 100644
--- a/libavcodec/xvididct.c
+++ b/libavcodec/xvididct.c
@@ -31,6 +31,8 @@ av_cold void ff_xvididct_init(IDCTDSPContext *c, 
AVCodecContext *avctx)
           avctx->idct_algo == FF_IDCT_XVIDMMX))
         return;
 
+    avctx->idct_algo = FF_IDCT_XVIDMMX;
+
     if (ARCH_X86)
         ff_xvididct_init_x86(c);
 }
-- 
1.8.3.2

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to