mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
When testing lame preset presence, use actuall lame_set_preset() function to test its availablility in the library.
Now it only tests include definitions. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20945 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6fb7cc1020
commit
9b11abbff7
4
configure
vendored
4
configure
vendored
@ -6555,12 +6555,12 @@ EOF
|
||||
_ld_mp3lame="-lmp3lame $_ld_vorbis"
|
||||
cat > $TMPC << EOF
|
||||
#include <lame/lame.h>
|
||||
int main(void) { int p = STANDARD_FAST; return 0; }
|
||||
int main(void) { lame_set_preset(NULL, STANDARD_FAST); return 0; }
|
||||
EOF
|
||||
cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset="#define HAVE_MP3LAME_PRESET"
|
||||
cat > $TMPC << EOF
|
||||
#include <lame/lame.h>
|
||||
int main(void) { int p = MEDIUM_FAST; return 0; }
|
||||
int main(void) { lame_set_preset(NULL, MEDIUM_FAST); return 0; }
|
||||
EOF
|
||||
cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset_medium="#define HAVE_MP3LAME_PRESET_MEDIUM"
|
||||
echo $_libavencoders | grep -q mp3lame && _lavc_mp3lame=yes || _lavc_mp3lame=no
|
||||
|
Loading…
Reference in New Issue
Block a user