Mercurial > libavcodec.hg
changeset 12043:f9a0bd0888a4 libavcodec
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.
author | mru |
---|---|
date | Thu, 01 Jul 2010 23:21:17 +0000 |
parents | dc4feabd4dab |
children | 49c528a39187 |
files | mpegaudiodec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);