x264: Add option to encode videos as bit depth 10

At compile time libx264 must be configured to encode videos in either 8
bit depth or 10 bit depth. It is not possible to compile libx264 to
support both bit depths simultaneously. This exposes the bit depth
compile option.
This commit is contained in:
Spencer Whitt 2015-03-25 18:10:08 -04:00
parent 98bf3f9d39
commit 3630a37dd5

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, yasm}:
{stdenv, fetchurl, yasm, enable10bit ? false}:
stdenv.mkDerivation rec {
version = "snapshot-20141218-2245-stable";
@ -14,7 +14,8 @@ stdenv.mkDerivation rec {
'';
configureFlags = [ "--enable-shared" ]
++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic";
++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic"
++ stdenv.lib.optional (enable10bit) "--bit-depth=10";
buildInputs = [ yasm ];