diff options
author | Mart Raudsepp <leio@gentoo.org> | 2018-11-26 01:13:44 +0200 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2018-11-26 01:23:13 +0200 |
commit | cb222dd95881897798eb4d0e9f6de1b8625dddb2 (patch) | |
tree | df25c0e8739ae5b30cf77ff0bfec2f4e8f1c1224 /media-plugins/gst-plugins-libav/files | |
parent | media-sound/supercollider: Sort keywords (diff) | |
download | gentoo-cb222dd95881897798eb4d0e9f6de1b8625dddb2.tar.gz gentoo-cb222dd95881897798eb4d0e9f6de1b8625dddb2.tar.bz2 gentoo-cb222dd95881897798eb4d0e9f6de1b8625dddb2.zip |
media-plugins/gst-plugins-libav: add ffmpeg-4 compatibility patches, other tweaks
* Pull a selective patchset from git master, that brings in ffmpeg-4
compatibility and some bug fixes; patchset tarball README has further details.
* Add a debian-inspired patch to tell gstreamer registry that the libav plugin
supported features may change, when the system ffmpeg library files change.
This should hopefully ensure that gstreamer sees new codecs immediately after
system-ffmpeg is recompiled to add them. Compared to Debian, we conditionalize
it based on USE=libav, so it's only actually done if system-ffmpeg is used, as
for us it's a choice, not always system-ffmpeg; this is achieved via #ifndef,
thus no conditional patching.
* Make bundled ffmpeg builds verbose for better build.log
* Try harder to honor user choices for bundled ffmpeg builds with USE=libav by
always disabling debug and passing CFLAGS as optflags; courtesy of
Arfrever Frehtes Taifersar Arahesis
Closes: https://bugs.gentoo.org/654628
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Package-Manager: Portage-2.3.52, Repoman-2.3.11
Diffstat (limited to 'media-plugins/gst-plugins-libav/files')
-rw-r--r-- | media-plugins/gst-plugins-libav/files/external-ffmpeg4-dep.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-libav/files/external-ffmpeg4-dep.patch b/media-plugins/gst-plugins-libav/files/external-ffmpeg4-dep.patch new file mode 100644 index 000000000000..c264507102f0 --- /dev/null +++ b/media-plugins/gst-plugins-libav/files/external-ffmpeg4-dep.patch @@ -0,0 +1,20 @@ +diff --git a/ext/libav/gstav.c b/ext/libav/gstav.c +index 2a88230..f6a6303 100644 +--- a/ext/libav/gstav.c ++++ b/ext/libav/gstav.c +@@ -155,6 +155,15 @@ plugin_init (GstPlugin * plugin) + /* build global ffmpeg param/property info */ + gst_ffmpeg_cfg_init (); + ++#ifndef HAVE_LIBAV_UNINSTALLED ++ /* Not using bundled ffmpeg - add a feature rescan dependency for system-ffmpeg */ ++ gst_plugin_add_dependency_simple (plugin, NULL, ++ GIO_LIBDIR, ++ "libavcodec.so.58," ++ "libavformat.so.58", ++ GST_PLUGIN_DEPENDENCY_FLAG_NONE); ++#endif ++ + gst_ffmpegaudenc_register (plugin); + gst_ffmpegvidenc_register (plugin); + gst_ffmpegauddec_register (plugin); |