summaryrefslogtreecommitdiff
path: root/pkg/ffmpeg/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-08-18 20:34:38 -0700
committerMichael Forney <mforney@mforney.org>2020-08-19 12:43:47 -0700
commitdf8017a9dca4da4f97c2bab137e504a3bea89ffa (patch)
tree52aead1c3f1bcd5b7466f98f7e98990211f0dd81 /pkg/ffmpeg/gen.lua
parent7508d43375d83dd388006cc627705bad2df14ee8 (diff)
ffmpeg: Enable AV1 decoding through dav1d
Diffstat (limited to 'pkg/ffmpeg/gen.lua')
-rw-r--r--pkg/ffmpeg/gen.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/ffmpeg/gen.lua b/pkg/ffmpeg/gen.lua
index 72370562..6919ef9e 100644
--- a/pkg/ffmpeg/gen.lua
+++ b/pkg/ffmpeg/gen.lua
@@ -104,6 +104,12 @@ if options.CONFIG_ALSA_INDEV or options.config_ALSA_OUTDEV then
table.insert(sources.libavdevice, '$builddir/pkg/alsa-lib/libasound.a')
end
+if options.CONFIG_LIBDAV1D_DECODER then
+ cflags{'-isystem $builddir/pkg/dav1d/include'}
+ table.insert(pkg.deps, 'pkg/dav1d/headers')
+ table.insert(sources.libavcodec, '$builddir/pkg/dav1d/libdav1d.a')
+end
+
if options.CONFIG_TLS_PROTOCOL and options.CONFIG_LIBTLS then
cflags{'-isystem $builddir/pkg/libtls-bearssl/include'}
table.insert(pkg.deps, 'pkg/libtls-bearssl/headers')