mirror of https://github.com/mpv-player/mpv
Move x264 version check into configure.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14723 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4f51630962
commit
6f8427e09a
|
@ -5906,6 +5906,9 @@ cat > $TMPC << EOF
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <x264.h>
|
#include <x264.h>
|
||||||
|
#if X264_BUILD < 0x0010
|
||||||
|
#error We do not support old versions of x264. Get the latest from SVN.
|
||||||
|
#endif
|
||||||
int main(void) { x264_encoder_open((void*)0); return 0; }
|
int main(void) { x264_encoder_open((void*)0); return 0; }
|
||||||
EOF
|
EOF
|
||||||
_ld_x264="$_ld_x264 -lx264 $_ld_lm"
|
_ld_x264="$_ld_x264 -lx264 $_ld_lm"
|
||||||
|
|
|
@ -49,10 +49,6 @@
|
||||||
|
|
||||||
#include <x264.h>
|
#include <x264.h>
|
||||||
|
|
||||||
#if X264_BUILD < 0x0010
|
|
||||||
#error We do not support old versions of x264. Get the latest from SVN.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct _h264_module_t {
|
typedef struct _h264_module_t {
|
||||||
muxer_stream_t *mux;
|
muxer_stream_t *mux;
|
||||||
x264_param_t param;
|
x264_param_t param;
|
||||||
|
|
Loading…
Reference in New Issue