libspeexenc: Use speex_lib_get_mode instead of the speex_foo_mode data symbols
authorMartin Storsjö <martin@martin.st>
Fri, 3 Nov 2017 09:36:49 +0000 (11:36 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 3 Nov 2017 22:01:15 +0000 (00:01 +0200)
commit1746c7c8f2f9a6c5eacb486426dd0a579b4b7498
tree94e15d1835983f933f89f8ab5c4a7afe8cebc565
parent2cf3c0ab0d84b5cdb379059f8570809a13a306b9
libspeexenc: Use speex_lib_get_mode instead of the speex_foo_mode data symbols

This avoids issues linking to a DLL version of libspeex, since the
libspeex headers lack proper dllimport declarations for the data
symbols.

This isn't an issue when building with mingw with GNU binutils, since
GNU ld can fix up that kind of data import automatically.

libspeexdec.c already uses speex_lib_get_mode as well.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libspeexenc.c