Commit 91b8a09a authored by Jan Gerber's avatar Jan Gerber
Browse files

use local ffmpeg/libswresample if available

parent c38f9901
......@@ -152,6 +152,7 @@ if not env.GetOption('clean'):
"libavcodec >= 52.30.0",
"libpostproc",
"libswscale",
"libswresample",
"libavutil",
]
if os.path.exists("./ffmpeg"):
......@@ -167,13 +168,13 @@ if not env.GetOption('clean'):
'-Lffmpeg/' + lib
])
if conf.CheckPKG('libavresample'):
FFMPEG_LIBS.append('libavresample')
else:
if conf.CheckPKG('libswresample'):
FFMPEG_LIBS.append('libswresample')
env.Append(CCFLAGS=[
'-DUSE_SWRESAMPLE'
])
elif conf.CheckPKG('libavresample'):
FFMPEG_LIBS.append('libavresample')
if not conf.CheckPKG(' '.join(FFMPEG_LIBS)):
print """
......
......@@ -4,9 +4,6 @@
#include <libswresample/swresample.h>
//swr does not have the equivalent so this does nothing
void swr_close(SwrContext *ctx) {};
#else
#include <libavresample/avresample.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment