Hello community,
here is the log from the commit of package gstreamer-plugins-libav for
openSUSE:Factory checked in at 2017-11-11 14:21:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gstreamer-plugins-libav (Old)
and /work/SRC/openSUSE:Factory/.gstreamer-plugins-libav.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gstreamer-plugins-libav"
Sat Nov 11 14:21:50 2017 rev:3 rq:540485 version:1.12.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/gstreamer-plugins-libav/gstreamer-plugins-libav.changes
2017-09-26 21:16:32.260553883 +0200
+++
/work/SRC/openSUSE:Factory/.gstreamer-plugins-libav.new/gstreamer-plugins-libav.changes
2017-11-11 14:23:38.362331104 +0100
@@ -1,0 +2,6 @@
+Fri Nov 10 11:47:57 UTC 2017 - [email protected]
+
+- Add gst-libav-ffmpeg-3.4-hackfix.patch: Workaround api change in
+ ffmpeg 3.4 and newer (bgo#789193).
+
+-------------------------------------------------------------------
New:
----
gst-libav-ffmpeg-3.4-hackfix.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gstreamer-plugins-libav.spec ++++++
--- /var/tmp/diff_new_pack.jaH4jK/_old 2017-11-11 14:23:39.166301640 +0100
+++ /var/tmp/diff_new_pack.jaH4jK/_new 2017-11-11 14:23:39.170301493 +0100
@@ -27,6 +27,8 @@
Url: http://gstreamer.freedesktop.org/
Source:
https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-%{version}.tar.xz
Source1000: baselibs.conf
+# PATCH-FIX-UPSTREAM gst-libav-ffmpeg-3.4-hackfix.patch bgo#789193
[email protected] -- Workaround api change in ffmpeg 3.4 and newer
+Patch0: gst-libav-ffmpeg-3.4-hackfix.patch
BuildRequires: yasm
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(glib-2.0)
@@ -60,6 +62,7 @@
%prep
%setup -q -n gst-libav-%{version}
+%patch0 -p1
# Ensure we cannot use the embedded libav
rm -rf gst-libs/ext/libav
++++++ gst-libav-ffmpeg-3.4-hackfix.patch ++++++
--- gst-libav-1.12.3.orig/ext/libav/gstavviddec.c 2017-08-10
17:56:34.000000000 +0200
+++ gst-libav-1.12.3.orig/ext/libav/gstavviddec.c 2017-11-04
21:48:00.784354386 +0100
@@ -1525,8 +1525,20 @@
* See https://bugzilla.gnome.org/show_bug.cgi?id=726020
*/
GST_VIDEO_DECODER_STREAM_UNLOCK (ffmpegdec);
- len = avcodec_decode_video2 (ffmpegdec->context,
- ffmpegdec->picture, have_data, &packet);
+ *have_data = 0;
+ if (size > 0) {
+ len = avcodec_send_packet(ffmpegdec->context, &packet);
+ if (len == AVERROR(EAGAIN)) {
+ len = 0;
+ } else {
+ len = size;
+ }
+ if (len >= 0) {
+ int result = avcodec_receive_frame(ffmpegdec->context,
ffmpegdec->picture);
+ if (result == 0)
+ *have_data = 1;
+ }
+ }
GST_VIDEO_DECODER_STREAM_LOCK (ffmpegdec);
GST_DEBUG_OBJECT (ffmpegdec, "after decode: len %d, have_data %d",