diff options
| author | Michael Forney <mforney@mforney.org> | 2020-08-18 13:41:33 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-08-19 12:43:47 -0700 |
| commit | fc47c7322d7e43e47df41c7e8c5ad955a60e278b (patch) | |
| tree | 5145b71e5ddf3ee2ec47f10893d61ae575758b57 /pkg/ffmpeg/gen.lua | |
| parent | aa0f1e10f4b22b7cae828cc6fd7a336f8d8bbefe (diff) | |
ffmpeg: Enable opus encoding through libopus
Diffstat (limited to 'pkg/ffmpeg/gen.lua')
| -rw-r--r-- | pkg/ffmpeg/gen.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/ffmpeg/gen.lua b/pkg/ffmpeg/gen.lua index ca404efa..1ba19328 100644 --- a/pkg/ffmpeg/gen.lua +++ b/pkg/ffmpeg/gen.lua @@ -104,6 +104,12 @@ for lib, srcs in pairs(sources) do sources[lib] = table.keys(srcs) end +if options.CONFIG_LIBOPUS_ENCODER or options.CONFIG_LIBOPUS_DECODER then + cflags{'-isystem $builddir/pkg/opus/include'} + table.insert(pkg.deps, 'pkg/opus/headers') + table.insert(sources.libavcodec, '$builddir/pkg/opus/libopus.a') +end + lib('libavcodec.a', { expand{'libavcodec/', { 'ac3_parser.c', |
