aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ffmpeg.rb
diff options
context:
space:
mode:
authorstib2014-07-28 18:12:14 +1000
committerMike McQuaid2014-07-28 09:58:31 +0100
commit66a7aa83fdba702a7981744a3db564fc3b953297 (patch)
treedf5157afba0a501862ee2f2d3cc472f39eca476c /Library/Formula/ffmpeg.rb
parentdb519be6ba49a342e90118d9fec2d23b25a48b2f (diff)
downloadhomebrew-66a7aa83fdba702a7981744a3db564fc3b953297.tar.bz2
ffmpeg: use openjpeg instead of jpeg2000.
Even if -libopenjpeg is installed ffmpeg will try to use the built-in jpeg2000 codec to open j2K encoded video, which mostly doesn't work. I added a line to the build args to turn off the dodgy default decoder if someone installs --with-libopenjpeg because they probably want a working j2k codec. Closes #31182. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/ffmpeg.rb')
-rw-r--r--Library/Formula/ffmpeg.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb
index eff990d01..afe4984bd 100644
--- a/Library/Formula/ffmpeg.rb
+++ b/Library/Formula/ffmpeg.rb
@@ -104,6 +104,7 @@ class Ffmpeg < Formula
if build.with? "openjpeg"
args << "--enable-libopenjpeg"
+ args << "--disable-decoder=jpeg2000"
args << "--extra-cflags=" + %x[pkg-config --cflags libopenjpeg].chomp
end