aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-01 20:48:38 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-07 18:32:15 +0200
commit93fc80f8bfb3c6ce146e4cd30915bbd15ca73533 (patch)
tree9e374124fa521ebb0a2a433d366a6e5ae54df23e
parente2dcc4452dada1633c54601e8073b1ed84ff4b7e (diff)
downloadffmpeg-93fc80f8bfb3c6ce146e4cd30915bbd15ca73533.tar.gz
avcodec/x86/dsputil_init: only use xvid idct for lowres=0
Fixes crash Fixes Ticket2714 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit b791a0831b0a027e7ba4eb6961cc0180472ac603) Conflicts: libavcodec/x86/dsputil_init.c
-rw-r--r--libavcodec/x86/dsputil_mmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c
index 738bbd152b..96abaf90bc 100644
--- a/libavcodec/x86/dsputil_mmx.c
+++ b/libavcodec/x86/dsputil_mmx.c
@@ -2533,7 +2533,7 @@ static void dsputil_init_sse2(DSPContext *c, AVCodecContext *avctx,
const int high_bit_depth = bit_depth > 8;
#if HAVE_SSE2_INLINE
- if (!high_bit_depth && avctx->idct_algo == FF_IDCT_XVIDMMX) {
+ if (!high_bit_depth && avctx->idct_algo == FF_IDCT_XVIDMMX && avctx->lowres == 0) {
c->idct_put = ff_idct_xvid_sse2_put;
c->idct_add = ff_idct_xvid_sse2_add;
c->idct = ff_idct_xvid_sse2;