summary refs log tree commit diff
path: root/pkgs/development/libraries/ffmpeg
diff options
context:
space:
mode:
authormatthewcroughan <matt@croughan.sh>2021-04-24 22:14:04 +0100
committermatthewcroughan <matt@croughan.sh>2021-04-24 22:14:04 +0100
commit47586a182d768f96bda3e25ce32a76f2e8755dbd (patch)
treed33181bb9159475e60eed3963dbdf73f73da0373 /pkgs/development/libraries/ffmpeg
parentea5759474ac28cb06dcdc239d71db48fe433f100 (diff)
downloadnixpkgs-47586a182d768f96bda3e25ce32a76f2e8755dbd.tar
nixpkgs-47586a182d768f96bda3e25ce32a76f2e8755dbd.tar.gz
nixpkgs-47586a182d768f96bda3e25ce32a76f2e8755dbd.tar.bz2
nixpkgs-47586a182d768f96bda3e25ce32a76f2e8755dbd.tar.lz
nixpkgs-47586a182d768f96bda3e25ce32a76f2e8755dbd.tar.xz
nixpkgs-47586a182d768f96bda3e25ce32a76f2e8755dbd.tar.zst
nixpkgs-47586a182d768f96bda3e25ce32a76f2e8755dbd.zip
ffmpeg: add support for libsrt
based upon https://github.com/NixOS/nixpkgs/commit/47801afc3d342907fc00ea4467d23af636c4a3c4
Diffstat (limited to 'pkgs/development/libraries/ffmpeg')
-rw-r--r--pkgs/development/libraries/ffmpeg/generic.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix
index 82f1a8bf564..587eaa9d822 100644
--- a/pkgs/development/libraries/ffmpeg/generic.nix
+++ b/pkgs/development/libraries/ffmpeg/generic.nix
@@ -2,6 +2,7 @@
 , alsaLib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg
 , libssh, libtheora, libva, libdrm, libvorbis, libvpx, xz, libpulseaudio, soxr
 , x264, x265, xvidcore, zlib, libopus, speex, nv-codec-headers, dav1d
+, srt ? null
 , openglSupport ? false, libGLU ? null, libGL ? null
 , libmfxSupport ? false, intel-media-sdk ? null
 , libaomSupport ? false, libaom ? null
@@ -94,6 +95,7 @@ stdenv.mkDerivation rec {
     # Build flags
       "--enable-shared"
       (ifMinVer "0.6" "--enable-pic")
+      (enableFeature (srt != null) "libsrt")
       (enableFeature runtimeCpuDetectBuild "runtime-cpudetect")
       "--enable-hardcoded-tables"
     ] ++
@@ -171,7 +173,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = [
     bzip2 fontconfig freetype gnutls libiconv lame libass libogg libssh libtheora
-    libvorbis xz soxr x264 x265 xvidcore zlib libopus speex nv-codec-headers
+    libvorbis xz soxr x264 x265 xvidcore zlib libopus speex srt nv-codec-headers
   ] ++ optionals openglSupport [ libGL libGLU ]
     ++ optional libmfxSupport intel-media-sdk
     ++ optional libaomSupport libaom