mpegaudio: call ff_mpegaudiodec_init_mmx() only from float decoder
authorMåns Rullgård <mans@mansr.com>
Thu, 1 Jul 2010 23:21:17 +0000 (23:21 +0000)
committerMåns Rullgård <mans@mansr.com>
Thu, 1 Jul 2010 23:21:17 +0000 (23:21 +0000)
commit35d597d556af54ead069fe63ef6d8fa403af4340
tree60a56e1bd016329622bb1193c92a893c74711468
parent525fcb2798bf61d7850a56e9d92412a798c66b9a
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.

Fixes issue 2054.

Originally committed as revision 23949 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c