# HG changeset patch # User mru # Date 1278026477 0 # Node ID f9a0bd0888a42e6a66ae633f90a2faef49a9cc0c # Parent dc4feabd4dabcf351f7e05ca7ab9a551dafdbec4 mpegaudio: call ff_mpegaudiodec_init_mmx() only from float decoder The mmx code is floating-point only, and this function does not know from which decoder it is called. Without this change, the integer decoder only "works" because the size of the context struct is smaller in this case, and the mmx init function writes the function pointer outside the allocated context. diff -r dc4feabd4dab -r f9a0bd0888a4 mpegaudiodec.c --- a/mpegaudiodec.c Thu Jul 01 22:09:22 2010 +0000 +++ b/mpegaudiodec.c Thu Jul 01 23:21:17 2010 +0000 @@ -322,7 +322,7 @@ s->avctx = avctx; s->apply_window_mp3 = apply_window_mp3_c; -#if HAVE_MMX +#if HAVE_MMX && CONFIG_FLOAT ff_mpegaudiodec_init_mmx(s); #endif if (HAVE_ALTIVEC && CONFIG_FLOAT) ff_mpegaudiodec_init_altivec(s);