[vdr-vaapidevice] Add patch %{name}-undefined-symbol.patch fixes (BZ#5686)
by Martin Gansser
commit dc7feed6be64b74581e68f183bbef5d637dd0c58
Author: Martin Gansser <mgansser(a)online.de>
Date: Mon Jun 29 19:19:03 2020 +0200
Add patch %{name}-undefined-symbol.patch fixes (BZ#5686)
sources | 2 +-
vdr-vaapidevice-undefined-symbol.patch | 13 +++++++++++++
vdr-vaapidevice.spec | 8 ++++++--
3 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/sources b/sources
index e796ccc..3ca463e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f552a85fb685decfaf3172f1b3913cec vdr-plugin-vaapi-d19657b.tar.gz
+SHA512 (vdr-plugin-vaapi-d19657b.tar.gz) = f67caa3f052479ac8339700766471f0f36369b152c84c84ed7479ddb67235fa527465dffae6f3b0d57f6cae12ed3d4c290a7cd65ad32af1421943b8adcad8e5b
diff --git a/vdr-vaapidevice-undefined-symbol.patch b/vdr-vaapidevice-undefined-symbol.patch
new file mode 100644
index 0000000..bdd036e
--- /dev/null
+++ b/vdr-vaapidevice-undefined-symbol.patch
@@ -0,0 +1,13 @@
+--- Makefile.x 2020-06-29 16:21:04.108953021 +0200
++++ Makefile 2020-06-29 16:28:55.975251824 +0200
+@@ -40,8 +40,8 @@
+ $(warning CXXFLAGS not set)
+ endif
+
+-_CFLAGS += $(shell pkg-config --cflags alsa libva libavcodec libswscale libswresample x11 x11-xcb xcb xcb-icccm xcb-screensaver xcb-dpms)
+-LIBS += -lrt $(shell pkg-config --libs alsa libva libavcodec libswscale libswresample x11 x11-xcb xcb xcb-icccm xcb-screensaver xcb-dpms)
++_CFLAGS += $(shell pkg-config --cflags alsa libva-x11 libavcodec libswscale libswresample x11 x11-xcb xcb xcb-icccm xcb-screensaver xcb-dpms)
++LIBS += -lrt $(shell pkg-config --libs alsa libva-x11 libavcodec libswscale libswresample x11 x11-xcb xcb xcb-icccm xcb-screensaver xcb-dpms)
+
+ ### The version number of VDR's plugin API:
+
diff --git a/vdr-vaapidevice.spec b/vdr-vaapidevice.spec
index 74fa0b3..a5ba024 100644
--- a/vdr-vaapidevice.spec
+++ b/vdr-vaapidevice.spec
@@ -6,7 +6,7 @@
Name: vdr-vaapidevice
Version: 0.7.0
-Release: 17.%{gitdate}git%{shortcommit0}%{?dist}
+Release: 18.%{gitdate}git%{shortcommit0}%{?dist}
Summary: A VA-API output device plugin for VDR
License: AGPLv3
@@ -14,6 +14,7 @@ URL: https://github.com/pesintta/vdr-plugin-vaapidevice
Source0: %{url}/archive/%{commit0}/%{sname}-%{shortcommit0}.tar.gz
# Configuration files for plugin parameters. These are Fedora specific and not in upstream.
Source1: %{name}.conf
+Patch0: %{name}-undefined-symbol.patch
BuildRequires: gcc
BuildRequires: gcc-c++
@@ -49,7 +50,7 @@ A VA-API output device plugin for VDR.
%prep
-%setup -qn vdr-plugin-vaapidevice-%{commit0}
+%autosetup -p0 -n vdr-plugin-vaapidevice-%{commit0}
# remove .git files
rm -f .indent.pro .gitignore .dependencies
@@ -71,6 +72,9 @@ install -Dpm 644 %{SOURCE1} \
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/vaapidevice.conf
%changelog
+* Mon Jun 29 2020 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.0-18.20190526gitd19657b
+- Add patch %%{name}-undefined-symbol.patch fixes (BZ#5686)
+
* Sat Feb 22 2020 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> - 0.7.0-17.20190526gitd19657b
- Rebuild for ffmpeg-4.3 git
4 years, 4 months
[shotcut] Update to 20.06.28
by Martin Gansser
commit 6f1cbe0effb906da3180da9e75e51d3842928bc8
Author: Martin Gansser <mgansser(a)online.de>
Date: Mon Jun 29 15:45:15 2020 +0200
Update to 20.06.28
shotcut.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/shotcut.spec b/shotcut.spec
index 0c5e05b..59d132b 100644
--- a/shotcut.spec
+++ b/shotcut.spec
@@ -39,6 +39,10 @@ BuildRequires: pkgconfig(mlt++) >= 6.20.0
BuildRequires: pkgconfig(mlt-framework) >= 6.20.0
BuildRequires: x264-devel
BuildRequires: webvfx-devel
+%if 0%{?fedora} >= 33
+BuildRequires: gstreamer1-devel
+BuildRequires: gstreamer1-plugins-base-devel
+%endif
# mlt-freeworld is compellingly necessary otherwise shotcut coredumps
Requires: qt5-qtquickcontrols
4 years, 4 months
[shotcut/f31] Update to 20.06.28
by Martin Gansser
Summary of changes:
b9a2a72... Update to 20.06.28 (*)
(*) This commit already existed in another branch; no separate mail sent
4 years, 4 months
[shotcut/f32] Update to 20.06.28
by Martin Gansser
Summary of changes:
b9a2a72... Update to 20.06.28 (*)
(*) This commit already existed in another branch; no separate mail sent
4 years, 4 months
[shotcut] Update to 20.06.28
by Martin Gansser
commit b9a2a72f488e72953f8a03bd83b8894a96f2d957
Author: Martin Gansser <mgansser(a)online.de>
Date: Mon Jun 29 13:12:26 2020 +0200
Update to 20.06.28
.gitignore | 1 +
shotcut.spec | 7 +++++--
sources | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 27b7f30..8f5914d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,4 @@
/shotcut-20.02.02.tar.gz
/shotcut-20.02.17.tar.gz
/shotcut-20.04.12.tar.gz
+/shotcut-20.06.28.tar.gz
diff --git a/shotcut.spec b/shotcut.spec
index d8f6a2a..0c5e05b 100644
--- a/shotcut.spec
+++ b/shotcut.spec
@@ -3,7 +3,7 @@
%define _vstring %(echo %{version} |tr -d ".")
Name: shotcut
-Version: 20.04.12
+Version: 20.06.28
Release: 1%{dist}
#Release: 0.1.beta1%%{dist}
Summary: A free, open source, cross-platform video editor
@@ -173,7 +173,7 @@ appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/org.%{name}.S
%{_datadir}/%{name}/
%exclude %{_datadir}/%{name}/translations
%{_datadir}/applications/org.%{name}.Shotcut.desktop
-%{_datadir}/icons/hicolor/64x64/apps/org.%{name}.Shotcut.png
+%{_datadir}/icons/hicolor/*/apps/org.%{name}.Shotcut.png
%{_metainfodir}/org.%{name}.Shotcut.appdata.xml
%{_datadir}/mime/packages/org.%{name}.Shotcut.xml
%{_mandir}/man1/%{name}.1.*
@@ -184,6 +184,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/org.%{name}.S
%doc doc
%changelog
+* Mon Jun 29 2020 Martin Gansser <martinkg(a)fedoraproject.org> - 20.06.28-1
+- Update to 20.06.28
+
* Tue Apr 14 2020 Martin Gansser <martinkg(a)fedoraproject.org> - 20.04.12-1
- Update to 20.04.12
diff --git a/sources b/sources
index 311b8a9..2825c88 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (shotcut-20.04.12.tar.gz) = e827d185675eee7f79c8844451df1e4ef3c817f086429c54026f445a57d20aa45edc1446016125e967972ff38e0b30747ebda6186fbd68082b45f1d80a1ffb5d
+SHA512 (shotcut-20.06.28.tar.gz) = cd9b96ca467c669138902a94975a5f23baa266b1eb92de0b0446e6f6616a9927aac430c6bd41c4f00de4e5b6d99bfbdf074d339f98ef219a38e3572d8670d78b
4 years, 4 months
[gstreamer-ffmpeg] bump release to get around rpmfusion-free-obsolete-packages-32
by Dominik Mierzejewski
commit 826aa840862aeb83eb0ed7bd283e5810c4173fd6
Author: Dominik 'Rathann' Mierzejewski <dominik(a)greysector.net>
Date: Mon Jun 29 13:08:15 2020 +0200
bump release to get around rpmfusion-free-obsolete-packages-32
gstreamer-ffmpeg.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gstreamer-ffmpeg.spec b/gstreamer-ffmpeg.spec
index 1f30d13..e7fac1f 100644
--- a/gstreamer-ffmpeg.spec
+++ b/gstreamer-ffmpeg.spec
@@ -2,7 +2,7 @@
Name: gstreamer-ffmpeg
Version: 0.10.13
-Release: 25%{?dist}
+Release: 26%{?dist}
Summary: GStreamer FFmpeg-based plug-ins
# the ffmpeg plugin is LGPL, the postproc plugin is GPL
License: GPLv2+ and LGPLv2+
@@ -89,6 +89,9 @@ rm %{buildroot}%{_libdir}/gstreamer-0.10/libgst*.la
%changelog
+* Mon Jun 29 2020 Dominik Mierzejewski <rpm(a)greysector.net> - 0.10.13-26
+- bump release to get around rpmfusion-free-obsolete-packages-32
+
* Tue Feb 04 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> - 0.10.13-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4 years, 4 months
[gstreamer-ffmpeg] Resurrect for the legacy repo.
by Dominik Mierzejewski
commit e3503c50d0d9c08cb5f8b027f1d036bfcf0b5fc1
Author: Dominik 'Rathann' Mierzejewski <dominik(a)greysector.net>
Date: Mon Jun 29 13:04:15 2020 +0200
Resurrect for the legacy repo.
Revert "gstreamer is no longer in fedora"
This reverts commit 81e5b44e5783940c0f36dbdc0730af9a157a2bbc.
.gitignore | 2 +
0001-configure.ac-Fix-for-new-libav.patch | 27 ++
0002-gstffmpegutils-Fix-include.patch | 34 ++
...fmpegdec-Re-enable-MT-decoding-by-default.patch | 25 ++
0004-ffmpeg-fix-pad-template-ref-leaks.patch | 112 +++++++
...ec-Report-latency-if-B-frames-are-present.patch | 98 ++++++
...nel-layouts-are-now-set-for-DTS-and-E-AC3.patch | 43 +++
0007-ffmpegdemux-fix-caps-leak.patch | 24 ++
...ec-Only-set-get_buffer-function-for-video.patch | 32 ++
...ecmap-Add-mapping-for-Indeo-4-video-codec.patch | 38 +++
...se-auto-threads-if-available-and-only-sli.patch | 38 +++
...ux-Use-correct-enum-type-for-return-value.patch | 25 ++
0012-ffdec-don-t-flush-buffers-on-DISCONT.patch | 40 +++
dead.package | 1 -
gst-ffmpeg-0.10.12-ChangeLog-UTF-8.patch | 9 +
gst-ffmpeg-0.10.13-orc-0.4.30.patch | 24 ++
gstreamer-ffmpeg.spec | 367 +++++++++++++++++++++
sources | 2 +
18 files changed, 940 insertions(+), 1 deletion(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..873fe4c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+gst-ffmpeg-0.10.13.tar.bz2
+libav-*.tar.xz
diff --git a/0001-configure.ac-Fix-for-new-libav.patch b/0001-configure.ac-Fix-for-new-libav.patch
new file mode 100644
index 0000000..3c8d22b
--- /dev/null
+++ b/0001-configure.ac-Fix-for-new-libav.patch
@@ -0,0 +1,27 @@
+From d97f8b09fbc1db16ad257ad0f0c682611a95a94c Mon Sep 17 00:00:00 2001
+From: Edward Hervey <edward.hervey(a)collabora.co.uk>
+Date: Mon, 17 Oct 2011 14:26:20 +0000
+Subject: [PATCH 01/12] configure.ac: Fix for new libav
+
+---
+ configure | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure b/configure
+index 87e825e..83020f7 100755
+--- a/configure
++++ b/configure
+@@ -16696,8 +16696,8 @@ fi
+ embffmpeg_configure_args="--prefix=$prefix"
+
+ # Enable pic and static so that we get .a files, but with PIC code.
+- embffmpeg_configure_args="$embffmpeg_configure_args --disable-ffserver --disable-ffplay\
+- --disable-ffmpeg --disable-ffprobe --enable-static --enable-pic \
++ embffmpeg_configure_args="$embffmpeg_configure_args --disable-avserver --disable-avplay\
++ --disable-ffmpeg --disable-avprobe --enable-postproc --enable-gpl --enable-static --enable-pic \
+ --disable-encoder=flac --disable-decoder=cavs --disable-protocols --disable-devices\
+ --disable-network --disable-hwaccels --disable-filters --disable-doc\
+ --enable-optimizations"
+--
+1.7.10.4
+
diff --git a/0002-gstffmpegutils-Fix-include.patch b/0002-gstffmpegutils-Fix-include.patch
new file mode 100644
index 0000000..31006b7
--- /dev/null
+++ b/0002-gstffmpegutils-Fix-include.patch
@@ -0,0 +1,34 @@
+From d4e381c1cf8fa825d060b3c2797272e675d15937 Mon Sep 17 00:00:00 2001
+From: Edward Hervey <edward.hervey(a)collabora.co.uk>
+Date: Mon, 17 Oct 2011 16:26:52 +0200
+Subject: [PATCH 02/12] gstffmpegutils: Fix include
+
+---
+ ext/ffmpeg/gstffmpegutils.h | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/ext/ffmpeg/gstffmpegutils.h b/ext/ffmpeg/gstffmpegutils.h
+index 4b713de..dbc3fae 100644
+--- a/ext/ffmpeg/gstffmpegutils.h
++++ b/ext/ffmpeg/gstffmpegutils.h
+@@ -20,11 +20,17 @@
+ #ifndef __GST_FFMPEG_UTILS_H__
+ #define __GST_FFMPEG_UTILS_H__
+
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++
+ #ifdef HAVE_FFMPEG_UNINSTALLED
++#include <mathematics.h>
+ #include <avcodec.h>
+ #else
+ #include <libavcodec/avcodec.h>
+ #endif
++
+ #include <gst/gst.h>
+
+ /*
+--
+1.7.10.4
+
diff --git a/0003-gstffmpegdec-Re-enable-MT-decoding-by-default.patch b/0003-gstffmpegdec-Re-enable-MT-decoding-by-default.patch
new file mode 100644
index 0000000..8da008c
--- /dev/null
+++ b/0003-gstffmpegdec-Re-enable-MT-decoding-by-default.patch
@@ -0,0 +1,25 @@
+From 68c379469f807bc8d34bd8bb0ea28fd25a9be1db Mon Sep 17 00:00:00 2001
+From: Edward Hervey <edward.hervey(a)collabora.co.uk>
+Date: Mon, 17 Oct 2011 16:27:36 +0200
+Subject: [PATCH 03/12] gstffmpegdec: Re-enable MT-decoding by default
+
+---
+ ext/ffmpeg/gstffmpegdec.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
+index cc07889..035307e 100644
+--- a/ext/ffmpeg/gstffmpegdec.c
++++ b/ext/ffmpeg/gstffmpegdec.c
+@@ -197,7 +197,7 @@ gst_ts_info_get (GstFFMpegDec * dec, gint idx)
+ #define DEFAULT_DO_PADDING TRUE
+ #define DEFAULT_DEBUG_MV FALSE
+ #define DEFAULT_CROP TRUE
+-#define DEFAULT_MAX_THREADS 1
++#define DEFAULT_MAX_THREADS 0
+
+ enum
+ {
+--
+1.7.10.4
+
diff --git a/0004-ffmpeg-fix-pad-template-ref-leaks.patch b/0004-ffmpeg-fix-pad-template-ref-leaks.patch
new file mode 100644
index 0000000..7543c3e
--- /dev/null
+++ b/0004-ffmpeg-fix-pad-template-ref-leaks.patch
@@ -0,0 +1,112 @@
+From e392044f5b363f0cdba8a9441a1cb32b20387569 Mon Sep 17 00:00:00 2001
+From: Vincent Penquerc'h <vincent.penquerch(a)collabora.co.uk>
+Date: Mon, 28 Nov 2011 13:23:42 +0000
+Subject: [PATCH 04/12] ffmpeg: fix pad template ref leaks
+
+https://bugzilla.gnome.org/show_bug.cgi?id=662664
+---
+ ext/ffmpeg/gstffmpegaudioresample.c | 6 ++----
+ ext/ffmpeg/gstffmpegdeinterlace.c | 6 ++----
+ ext/ffmpeg/gstffmpegmux.c | 3 +++
+ ext/libpostproc/gstpostproc.c | 8 ++++----
+ ext/libswscale/gstffmpegscale.c | 6 ++----
+ 5 files changed, 13 insertions(+), 16 deletions(-)
+
+diff --git a/ext/ffmpeg/gstffmpegaudioresample.c b/ext/ffmpeg/gstffmpegaudioresample.c
+index 321a008..b63068d 100644
+--- a/ext/ffmpeg/gstffmpegaudioresample.c
++++ b/ext/ffmpeg/gstffmpegaudioresample.c
+@@ -103,10 +103,8 @@ gst_ffmpegaudioresample_base_init (gpointer g_class)
+ {
+ GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
+
+- gst_element_class_add_pad_template (element_class,
+- gst_static_pad_template_get (&src_factory));
+- gst_element_class_add_pad_template (element_class,
+- gst_static_pad_template_get (&sink_factory));
++ gst_element_class_add_static_pad_template (element_class, &src_factory);
++ gst_element_class_add_static_pad_template (element_class, &sink_factory);
+ gst_element_class_set_details_simple (element_class,
+ "FFMPEG Audio resampling element", "Filter/Converter/Audio",
+ "Converts audio from one samplerate to another",
+diff --git a/ext/ffmpeg/gstffmpegdeinterlace.c b/ext/ffmpeg/gstffmpegdeinterlace.c
+index de95314..40fea5e 100644
+--- a/ext/ffmpeg/gstffmpegdeinterlace.c
++++ b/ext/ffmpeg/gstffmpegdeinterlace.c
+@@ -145,10 +145,8 @@ gst_ffmpegdeinterlace_base_init (gpointer g_class)
+ {
+ GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
+
+- gst_element_class_add_pad_template (element_class,
+- gst_static_pad_template_get (&src_factory));
+- gst_element_class_add_pad_template (element_class,
+- gst_static_pad_template_get (&sink_factory));
++ gst_element_class_add_static_pad_template (element_class, &src_factory);
++ gst_element_class_add_static_pad_template (element_class, &sink_factory);
+ gst_element_class_set_details_simple (element_class,
+ "FFMPEG Deinterlace element", "Filter/Effect/Video/Deinterlace",
+ "Deinterlace video", "Luca Ognibene <luogni(a)tin.it>");
+diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c
+index 538aeed..a041761 100644
+--- a/ext/ffmpeg/gstffmpegmux.c
++++ b/ext/ffmpeg/gstffmpegmux.c
+@@ -272,17 +272,20 @@ gst_ffmpegmux_base_init (gpointer g_class)
+ /* pad templates */
+ srctempl = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, srccaps);
+ gst_element_class_add_pad_template (element_class, srctempl);
++ gst_object_unref (srctempl);
+
+ if (audiosinkcaps) {
+ audiosinktempl = gst_pad_template_new ("audio_%d",
+ GST_PAD_SINK, GST_PAD_REQUEST, audiosinkcaps);
+ gst_element_class_add_pad_template (element_class, audiosinktempl);
++ gst_object_unref (audiosinktempl);
+ }
+
+ if (videosinkcaps) {
+ videosinktempl = gst_pad_template_new ("video_%d",
+ GST_PAD_SINK, GST_PAD_REQUEST, videosinkcaps);
+ gst_element_class_add_pad_template (element_class, videosinktempl);
++ gst_object_unref (videosinktempl);
+ }
+
+ beach:
+diff --git a/ext/libpostproc/gstpostproc.c b/ext/libpostproc/gstpostproc.c
+index f9ddcdd..963b77d 100644
+--- a/ext/libpostproc/gstpostproc.c
++++ b/ext/libpostproc/gstpostproc.c
+@@ -381,10 +381,10 @@ gst_post_proc_base_init (GstPostProcClass * klass)
+ g_free (longname);
+ g_free (description);
+
+- gst_element_class_add_pad_template (element_class,
+- gst_static_pad_template_get (&gst_post_proc_src_template));
+- gst_element_class_add_pad_template (element_class,
+- gst_static_pad_template_get (&gst_post_proc_sink_template));
++ gst_element_class_add_static_pad_template (element_class,
++ &gst_post_proc_src_template);
++ gst_element_class_add_static_pad_template (element_class,
++ &gst_post_proc_sink_template);
+
+ klass->filterid = ppidx;
+ }
+diff --git a/ext/libswscale/gstffmpegscale.c b/ext/libswscale/gstffmpegscale.c
+index b9ef3e1..e00956c 100644
+--- a/ext/libswscale/gstffmpegscale.c
++++ b/ext/libswscale/gstffmpegscale.c
+@@ -190,10 +190,8 @@ gst_ffmpegscale_base_init (gpointer g_class)
+ {
+ GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
+
+- gst_element_class_add_pad_template (element_class,
+- gst_static_pad_template_get (&src_factory));
+- gst_element_class_add_pad_template (element_class,
+- gst_static_pad_template_get (&sink_factory));
++ gst_element_class_add_static_pad_template (element_class, &src_factory);
++ gst_element_class_add_static_pad_template (element_class, &sink_factory);
+ gst_element_class_set_details_simple (element_class, "FFMPEG Scale element",
+ "Filter/Converter/Video",
+ "Converts video from one resolution to another",
+--
+1.7.10.4
+
diff --git a/0005-ffmpegdec-Report-latency-if-B-frames-are-present.patch b/0005-ffmpegdec-Report-latency-if-B-frames-are-present.patch
new file mode 100644
index 0000000..fa96074
--- /dev/null
+++ b/0005-ffmpegdec-Report-latency-if-B-frames-are-present.patch
@@ -0,0 +1,98 @@
+From 75665085f654d312a57a06406ae0e6c31ffdd1cd Mon Sep 17 00:00:00 2001
+From: Edward Hervey <edward.hervey(a)collabora.co.uk>
+Date: Tue, 8 Nov 2011 18:56:54 +0100
+Subject: [PATCH 05/12] ffmpegdec: Report latency if B-frames are present
+
+... and cleanup the query handler while we're at it
+
+https://bugzilla.gnome.org/show_bug.cgi?id=663616
+---
+ ext/ffmpeg/gstffmpegdec.c | 61 ++++++++++++++++++++++++++-------------------
+ 1 file changed, 36 insertions(+), 25 deletions(-)
+
+diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
+index 035307e..a0f609a 100644
+--- a/ext/ffmpeg/gstffmpegdec.c
++++ b/ext/ffmpeg/gstffmpegdec.c
+@@ -477,35 +477,43 @@ static gboolean
+ gst_ffmpegdec_query (GstPad * pad, GstQuery * query)
+ {
+ GstFFMpegDec *ffmpegdec;
+- GstPad *peer;
+- gboolean res;
++ gboolean res = FALSE;
+
+ ffmpegdec = (GstFFMpegDec *) gst_pad_get_parent (pad);
+
+- res = FALSE;
+-
+- if ((peer = gst_pad_get_peer (ffmpegdec->sinkpad))) {
+- /* just forward to peer */
+- res = gst_pad_query (peer, query);
+- gst_object_unref (peer);
+- }
+-#if 0
+- {
+- GstFormat bfmt;
+-
+- bfmt = GST_FORMAT_BYTES;
+-
+- /* ok, do bitrate calc... */
+- if ((type != GST_QUERY_POSITION && type != GST_QUERY_TOTAL) ||
+- *fmt != GST_FORMAT_TIME || ffmpegdec->context->bit_rate == 0 ||
+- !gst_pad_query (peer, type, &bfmt, value))
+- return FALSE;
+-
+- if (ffmpegdec->pcache && type == GST_QUERY_POSITION)
+- *value -= GST_BUFFER_SIZE (ffmpegdec->pcache);
+- *value *= GST_SECOND / ffmpegdec->context->bit_rate;
++ switch (GST_QUERY_TYPE (query)) {
++ case GST_QUERY_LATENCY:
++ {
++ GST_DEBUG_OBJECT (ffmpegdec, "latency query %d",
++ ffmpegdec->context->has_b_frames);
++ if ((res = gst_pad_peer_query (ffmpegdec->sinkpad, query))) {
++ if (ffmpegdec->context->has_b_frames) {
++ gboolean live;
++ GstClockTime min_lat, max_lat, our_lat;
++
++ gst_query_parse_latency (query, &live, &min_lat, &max_lat);
++ if (ffmpegdec->format.video.fps_n > 0)
++ our_lat =
++ gst_util_uint64_scale_int (ffmpegdec->context->has_b_frames *
++ GST_SECOND, ffmpegdec->format.video.fps_d,
++ ffmpegdec->format.video.fps_n);
++ else
++ our_lat =
++ gst_util_uint64_scale_int (ffmpegdec->context->has_b_frames *
++ GST_SECOND, 1, 25);
++ if (min_lat != -1)
++ min_lat += our_lat;
++ if (max_lat != -1)
++ max_lat += our_lat;
++ gst_query_set_latency (query, live, min_lat, max_lat);
++ }
++ }
++ }
++ break;
++ default:
++ res = gst_pad_query_default (pad, query);
++ break;
+ }
+-#endif
+
+ gst_object_unref (ffmpegdec);
+
+@@ -1546,6 +1554,9 @@ check_keyframe (GstFFMpegDec * ffmpegdec)
+ if (!ffmpegdec->has_b_frames && ffmpegdec->picture->pict_type == FF_B_TYPE) {
+ GST_DEBUG_OBJECT (ffmpegdec, "we have B frames");
+ ffmpegdec->has_b_frames = TRUE;
++ /* Emit latency message to recalculate it */
++ gst_element_post_message (GST_ELEMENT_CAST (ffmpegdec),
++ gst_message_new_latency (GST_OBJECT_CAST (ffmpegdec)));
+ }
+
+ is_itype = (ffmpegdec->picture->pict_type == FF_I_TYPE);
+--
+1.7.10.4
+
diff --git a/0006-ffmpeg-Channel-layouts-are-now-set-for-DTS-and-E-AC3.patch b/0006-ffmpeg-Channel-layouts-are-now-set-for-DTS-and-E-AC3.patch
new file mode 100644
index 0000000..090643a
--- /dev/null
+++ b/0006-ffmpeg-Channel-layouts-are-now-set-for-DTS-and-E-AC3.patch
@@ -0,0 +1,43 @@
+From 36004f3ac91e3436a55b2fd22438fe43493dcb8a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian.droege(a)collabora.co.uk>
+Date: Tue, 10 Jan 2012 10:08:05 +0100
+Subject: [PATCH 06/12] ffmpeg: Channel layouts are now set for DTS and (E)AC3
+ by libav
+
+---
+ ext/ffmpeg/gstffmpegcodecmap.c | 19 -------------------
+ 1 file changed, 19 deletions(-)
+
+diff --git a/ext/ffmpeg/gstffmpegcodecmap.c b/ext/ffmpeg/gstffmpegcodecmap.c
+index f3381dd..2b06b2b 100644
+--- a/ext/ffmpeg/gstffmpegcodecmap.c
++++ b/ext/ffmpeg/gstffmpegcodecmap.c
+@@ -340,25 +340,6 @@ gst_ff_aud_caps_new (AVCodecContext * context, enum CodecID codec_id,
+ GstAudioChannelPosition *pos;
+ guint64 channel_layout = context->channel_layout;
+
+- if (channel_layout == 0) {
+- const guint64 default_channel_set[] = {
+- 0, 0, CH_LAYOUT_SURROUND, CH_LAYOUT_QUAD, CH_LAYOUT_5POINT0,
+- CH_LAYOUT_5POINT1, 0, CH_LAYOUT_7POINT1
+- };
+-
+- switch (codec_id) {
+- case CODEC_ID_EAC3:
+- case CODEC_ID_AC3:
+- case CODEC_ID_DTS:
+- if (context->channels > 0
+- && context->channels < G_N_ELEMENTS (default_channel_set))
+- channel_layout = default_channel_set[context->channels - 1];
+- break;
+- default:
+- break;
+- }
+- }
+-
+ caps = gst_caps_new_simple (mimetype,
+ "rate", G_TYPE_INT, context->sample_rate,
+ "channels", G_TYPE_INT, context->channels, NULL);
+--
+1.7.10.4
+
diff --git a/0007-ffmpegdemux-fix-caps-leak.patch b/0007-ffmpegdemux-fix-caps-leak.patch
new file mode 100644
index 0000000..183893f
--- /dev/null
+++ b/0007-ffmpegdemux-fix-caps-leak.patch
@@ -0,0 +1,24 @@
+From e0212a0b36fea9a3ad836bb0014e136675ad7ac8 Mon Sep 17 00:00:00 2001
+From: Vincent Penquerc'h <vincent.penquerch(a)collabora.co.uk>
+Date: Thu, 12 Jan 2012 14:57:48 +0000
+Subject: [PATCH 07/12] ffmpegdemux: fix caps leak
+
+---
+ ext/ffmpeg/gstffmpegdemux.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c
+index 3eb5328..6122a40 100644
+--- a/ext/ffmpeg/gstffmpegdemux.c
++++ b/ext/ffmpeg/gstffmpegdemux.c
+@@ -1330,6 +1330,7 @@ gst_ffmpegdemux_type_find (GstTypeFind * tf, gpointer priv)
+ in_plugin->name, sinkcaps, res);
+
+ gst_type_find_suggest (tf, res, sinkcaps);
++ gst_caps_unref (sinkcaps);
+ }
+ }
+ }
+--
+1.7.10.4
+
diff --git a/0008-ffdec-Only-set-get_buffer-function-for-video.patch b/0008-ffdec-Only-set-get_buffer-function-for-video.patch
new file mode 100644
index 0000000..9b37076
--- /dev/null
+++ b/0008-ffdec-Only-set-get_buffer-function-for-video.patch
@@ -0,0 +1,32 @@
+From 2a7cd3290348ef20eef728e37e5c4dce31c40b08 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian.droege(a)collabora.co.uk>
+Date: Wed, 18 Jan 2012 10:05:09 +0100
+Subject: [PATCH 08/12] ffdec: Only set get_buffer() function for video
+
+Fixes bug #666435.
+---
+ ext/ffmpeg/gstffmpegdec.c | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
+index a0f609a..cbef197 100644
+--- a/ext/ffmpeg/gstffmpegdec.c
++++ b/ext/ffmpeg/gstffmpegdec.c
+@@ -766,9 +766,11 @@ gst_ffmpegdec_setcaps (GstPad * pad, GstCaps * caps)
+ }
+
+ /* set buffer functions */
+- ffmpegdec->context->get_buffer = gst_ffmpegdec_get_buffer;
+- ffmpegdec->context->release_buffer = gst_ffmpegdec_release_buffer;
+- ffmpegdec->context->draw_horiz_band = NULL;
++ if (oclass->in_plugin->type == AVMEDIA_TYPE_VIDEO) {
++ ffmpegdec->context->get_buffer = gst_ffmpegdec_get_buffer;
++ ffmpegdec->context->release_buffer = gst_ffmpegdec_release_buffer;
++ ffmpegdec->context->draw_horiz_band = NULL;
++ }
+
+ /* default is to let format decide if it needs a parser */
+ ffmpegdec->turnoff_parser = FALSE;
+--
+1.7.10.4
+
diff --git a/0009-codecmap-Add-mapping-for-Indeo-4-video-codec.patch b/0009-codecmap-Add-mapping-for-Indeo-4-video-codec.patch
new file mode 100644
index 0000000..922a4b2
--- /dev/null
+++ b/0009-codecmap-Add-mapping-for-Indeo-4-video-codec.patch
@@ -0,0 +1,38 @@
+From 92b319b021f4b0ce2ee7069d9894a6a47a78faf9 Mon Sep 17 00:00:00 2001
+From: Edward Hervey <edward.hervey(a)collabora.co.uk>
+Date: Wed, 22 Feb 2012 12:14:21 +0100
+Subject: [PATCH 09/12] codecmap: Add mapping for Indeo 4 video codec
+
+---
+ ext/ffmpeg/gstffmpegcodecmap.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/ext/ffmpeg/gstffmpegcodecmap.c b/ext/ffmpeg/gstffmpegcodecmap.c
+index 2b06b2b..3759a35 100644
+--- a/ext/ffmpeg/gstffmpegcodecmap.c
++++ b/ext/ffmpeg/gstffmpegcodecmap.c
+@@ -906,6 +906,11 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
+ "indeoversion", G_TYPE_INT, 5, NULL);
+ break;
+
++ case CODEC_ID_INDEO4:
++ caps = gst_ff_vid_caps_new (context, codec_id, "video/x-indeo",
++ "indeoversion", G_TYPE_INT, 4, NULL);
++ break;
++
+ case CODEC_ID_INDEO3:
+ caps = gst_ff_vid_caps_new (context, codec_id, "video/x-indeo",
+ "indeoversion", G_TYPE_INT, 3, NULL);
+@@ -3162,6 +3167,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
+ case 5:
+ id = CODEC_ID_INDEO5;
+ break;
++ case 4:
++ id = CODEC_ID_INDEO4;
++ break;
+ case 3:
+ id = CODEC_ID_INDEO3;
+ break;
+--
+1.7.10.4
+
diff --git a/0010-ffmpegdec-Use-auto-threads-if-available-and-only-sli.patch b/0010-ffmpegdec-Use-auto-threads-if-available-and-only-sli.patch
new file mode 100644
index 0000000..cac3d33
--- /dev/null
+++ b/0010-ffmpegdec-Use-auto-threads-if-available-and-only-sli.patch
@@ -0,0 +1,38 @@
+From daabb55de44947f322181a3d7c320ad0202baf7a Mon Sep 17 00:00:00 2001
+From: Edward Hervey <edward.hervey(a)collabora.co.uk>
+Date: Fri, 2 Mar 2012 17:27:30 +0100
+Subject: [PATCH 10/12] ffmpegdec: Use auto-threads if available, and only
+ slice-threading
+
+Slice threading causes less latency (and corruption)
+---
+ ext/ffmpeg/gstffmpegdec.c | 11 ++++++++---
+ 1 file changed, 8 insertions(+), 3 deletions(-)
+
+diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
+index cbef197..6ad266e 100644
+--- a/ext/ffmpeg/gstffmpegdec.c
++++ b/ext/ffmpeg/gstffmpegdec.c
+@@ -884,11 +884,16 @@ gst_ffmpegdec_setcaps (GstPad * pad, GstCaps * caps)
+ * supports it) */
+ ffmpegdec->context->debug_mv = ffmpegdec->debug_mv;
+
+- if (ffmpegdec->max_threads == 0)
+- ffmpegdec->context->thread_count = gst_ffmpeg_auto_max_threads ();
+- else
++ if (ffmpegdec->max_threads == 0) {
++ if (!(oclass->in_plugin->capabilities & CODEC_CAP_AUTO_THREADS))
++ ffmpegdec->context->thread_count = gst_ffmpeg_auto_max_threads ();
++ else
++ ffmpegdec->context->thread_count = 0;
++ } else
+ ffmpegdec->context->thread_count = ffmpegdec->max_threads;
+
++ ffmpegdec->context->thread_type = FF_THREAD_SLICE;
++
+ /* open codec - we don't select an output pix_fmt yet,
+ * simply because we don't know! We only get it
+ * during playback... */
+--
+1.7.10.4
+
diff --git a/0011-ffmux-Use-correct-enum-type-for-return-value.patch b/0011-ffmux-Use-correct-enum-type-for-return-value.patch
new file mode 100644
index 0000000..874dbca
--- /dev/null
+++ b/0011-ffmux-Use-correct-enum-type-for-return-value.patch
@@ -0,0 +1,25 @@
+From 283e0a54d04b2bf84fc365752dd4004c1e501f38 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian.droege(a)collabora.co.uk>
+Date: Tue, 6 Mar 2012 15:27:22 +0100
+Subject: [PATCH 11/12] ffmux: Use correct enum type for return value
+
+---
+ ext/ffmpeg/gstffmpegmux.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c
+index a041761..5486bda 100644
+--- a/ext/ffmpeg/gstffmpegmux.c
++++ b/ext/ffmpeg/gstffmpegmux.c
+@@ -785,7 +785,7 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data)
+ static GstStateChangeReturn
+ gst_ffmpegmux_change_state (GstElement * element, GstStateChange transition)
+ {
+- GstFlowReturn ret;
++ GstStateChangeReturn ret;
+ GstFFMpegMux *ffmpegmux = (GstFFMpegMux *) (element);
+
+ switch (transition) {
+--
+1.7.10.4
+
diff --git a/0012-ffdec-don-t-flush-buffers-on-DISCONT.patch b/0012-ffdec-don-t-flush-buffers-on-DISCONT.patch
new file mode 100644
index 0000000..e3cfff2
--- /dev/null
+++ b/0012-ffdec-don-t-flush-buffers-on-DISCONT.patch
@@ -0,0 +1,40 @@
+From 4422d5369e2831003d721f2ccd30410b1efbdf36 Mon Sep 17 00:00:00 2001
+From: Wim Taymans <wim.taymans(a)collabora.co.uk>
+Date: Fri, 20 Apr 2012 16:16:25 +0200
+Subject: [PATCH 12/12] ffdec: don't flush buffers on DISCONT
+
+Don't flush the buffers that ffmpeg has on DISCONT but instead let it recover.
+This gives a much better image in the case of packet loss.
+
+Fixes https://bugzilla.gnome.org/show_bug.cgi?id=635020
+---
+ ext/ffmpeg/gstffmpegdec.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
+index 6ad266e..d0773aa 100644
+--- a/ext/ffmpeg/gstffmpegdec.c
++++ b/ext/ffmpeg/gstffmpegdec.c
+@@ -2560,15 +2560,15 @@ gst_ffmpegdec_chain (GstPad * pad, GstBuffer * inbuf)
+ discont = GST_BUFFER_IS_DISCONT (inbuf);
+
+ /* The discont flags marks a buffer that is not continuous with the previous
+- * buffer. This means we need to clear whatever data we currently have. We
+- * currently also wait for a new keyframe, which might be suboptimal in the
+- * case of a network error, better show the errors than to drop all data.. */
++ * buffer. This means we need to clear whatever data we currently have. We let
++ * ffmpeg continue with the data that it has. We currently drain the old
++ * frames that might be inside the decoder and we clear any partial data in
++ * the pcache, we might be able to remove the drain and flush too. */
+ if (G_UNLIKELY (discont)) {
+ GST_DEBUG_OBJECT (ffmpegdec, "received DISCONT");
+ /* drain what we have queued */
+ gst_ffmpegdec_drain (ffmpegdec);
+ gst_ffmpegdec_flush_pcache (ffmpegdec);
+- avcodec_flush_buffers (ffmpegdec->context);
+ ffmpegdec->discont = TRUE;
+ gst_ffmpegdec_reset_ts (ffmpegdec);
+ }
+--
+1.7.10.4
+
diff --git a/gst-ffmpeg-0.10.12-ChangeLog-UTF-8.patch b/gst-ffmpeg-0.10.12-ChangeLog-UTF-8.patch
new file mode 100644
index 0000000..1651725
--- /dev/null
+++ b/gst-ffmpeg-0.10.12-ChangeLog-UTF-8.patch
@@ -0,0 +1,9 @@
+diff -U0 gst-ffmpeg-0.10.12/ChangeLog~ gst-ffmpeg-0.10.12/ChangeLog
+--- gst-ffmpeg-0.10.12/ChangeLog~ 2011-07-20 12:09:57.000000000 +0200
++++ gst-ffmpeg-0.10.12/ChangeLog 2011-09-04 10:20:50.064262797 +0200
+@@ -4277 +4277 @@
+-2007-11-08 14:44:36 +0000 Ole Andr� Vadla Ravn�s <ole.andre.ravnas(a)tandberg.com>
++2007-11-08 14:44:36 +0000 Ole André Vadla Ravnås <ole.andre.ravnas(a)tandberg.com>
+@@ -4281 +4281 @@
+- Patch by: Ole Andr� Vadla Ravn�s <ole dot andre dot ravnas at tandberg dot com>
++ Patch by: Ole André Vadla Ravnås <ole dot andre dot ravnas at tandberg dot com>
diff --git a/gst-ffmpeg-0.10.13-orc-0.4.30.patch b/gst-ffmpeg-0.10.13-orc-0.4.30.patch
new file mode 100644
index 0000000..4727512
--- /dev/null
+++ b/gst-ffmpeg-0.10.13-orc-0.4.30.patch
@@ -0,0 +1,24 @@
+diff -up gst-ffmpeg-0.10.13/ext/libswscale/gstffmpegscale.c.orc gst-ffmpeg-0.10.13/ext/libswscale/gstffmpegscale.c
+--- gst-ffmpeg-0.10.13/ext/libswscale/gstffmpegscale.c.orc 2019-11-20 10:08:09.730167627 +0100
++++ gst-ffmpeg-0.10.13/ext/libswscale/gstffmpegscale.c 2019-11-20 10:13:36.888577009 +0100
+@@ -636,7 +636,7 @@ gst_ffmpegscale_set_caps (GstBaseTransfo
+ swsflags = (mmx_flags & ORC_TARGET_MMX_MMX ? SWS_CPU_CAPS_MMX : 0)
+ | (mmx_flags & ORC_TARGET_MMX_MMXEXT ? SWS_CPU_CAPS_MMX2 : 0)
+ | (mmx_flags & ORC_TARGET_MMX_3DNOW ? SWS_CPU_CAPS_3DNOW : 0)
+- | (altivec_flags & ORC_TARGET_ALTIVEC_ALTIVEC ? SWS_CPU_CAPS_ALTIVEC : 0);
++ | (altivec_flags & ORC_TARGET_POWERPC_ALTIVEC ? SWS_CPU_CAPS_ALTIVEC : 0);
+ #else
+ mmx_flags = 0;
+ altivec_flags = 0;
+diff -up gst-ffmpeg-0.10.13/ext/libpostproc/gstpostproc.c.orc gst-ffmpeg-0.10.13/ext/libpostproc/gstpostproc.c
+--- gst-ffmpeg-0.10.13/ext/libpostproc/gstpostproc.c.orc 2019-11-20 10:23:40.014758297 +0100
++++ gst-ffmpeg-0.10.13/ext/libpostproc/gstpostproc.c 2019-11-20 10:27:56.561215105 +0100
+@@ -299,7 +299,7 @@ change_context (GstPostProc * postproc,
+ ppflags = (mmx_flags & ORC_TARGET_MMX_MMX ? PP_CPU_CAPS_MMX : 0)
+ | (mmx_flags & ORC_TARGET_MMX_MMXEXT ? PP_CPU_CAPS_MMX2 : 0)
+ | (mmx_flags & ORC_TARGET_MMX_3DNOW ? PP_CPU_CAPS_3DNOW : 0)
+- | (altivec_flags & ORC_TARGET_ALTIVEC_ALTIVEC ? PP_CPU_CAPS_ALTIVEC :
++ | (altivec_flags & ORC_TARGET_POWERPC_ALTIVEC ? PP_CPU_CAPS_ALTIVEC :
+ 0);
+ #else
+ mmx_flags = 0;
diff --git a/gstreamer-ffmpeg.spec b/gstreamer-ffmpeg.spec
new file mode 100644
index 0000000..1f30d13
--- /dev/null
+++ b/gstreamer-ffmpeg.spec
@@ -0,0 +1,367 @@
+%global libav_ver 0.8.21
+
+Name: gstreamer-ffmpeg
+Version: 0.10.13
+Release: 25%{?dist}
+Summary: GStreamer FFmpeg-based plug-ins
+# the ffmpeg plugin is LGPL, the postproc plugin is GPL
+License: GPLv2+ and LGPLv2+
+URL: http://gstreamer.freedesktop.org/
+Source0: http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-%{version}.tar...
+# We drop in a newer libav to get all the security bugfixes from there!
+Source1: http://libav.org/releases/libav-%{libav_ver}.tar.xz
+Patch0: gst-ffmpeg-0.10.12-ChangeLog-UTF-8.patch
+# Patches cherry picked from upstream for newer libav and bugfixes
+Patch1: 0001-configure.ac-Fix-for-new-libav.patch
+Patch2: 0002-gstffmpegutils-Fix-include.patch
+Patch3: 0003-gstffmpegdec-Re-enable-MT-decoding-by-default.patch
+Patch4: 0004-ffmpeg-fix-pad-template-ref-leaks.patch
+Patch5: 0005-ffmpegdec-Report-latency-if-B-frames-are-present.patch
+Patch6: 0006-ffmpeg-Channel-layouts-are-now-set-for-DTS-and-E-AC3.patch
+Patch7: 0007-ffmpegdemux-fix-caps-leak.patch
+Patch8: 0008-ffdec-Only-set-get_buffer-function-for-video.patch
+Patch9: 0009-codecmap-Add-mapping-for-Indeo-4-video-codec.patch
+Patch10: 0010-ffmpegdec-Use-auto-threads-if-available-and-only-sli.patch
+Patch11: 0011-ffmux-Use-correct-enum-type-for-return-value.patch
+Patch12: 0012-ffdec-don-t-flush-buffers-on-DISCONT.patch
+# fix build with orc >= 0.4.30
+Patch20: gst-ffmpeg-0.10.13-orc-0.4.30.patch
+BuildRequires: gstreamer-devel >= 0.10.0
+BuildRequires: gstreamer-plugins-base-devel >= 0.10.0
+BuildRequires: orc-devel >= 0.4.30 bzip2-devel zlib-devel
+%ifarch %{ix86} x86_64
+BuildRequires: yasm
+%endif
+BuildRequires: gcc
+
+%description
+GStreamer is a streaming media framework, based on graphs of filters which
+operate on media data. Applications using this library can do anything
+from real-time sound processing to playing videos, and just about anything
+else media-related. Its plugin-based architecture means that new data
+types or processing capabilities can be added simply by installing new
+plugins.
+
+This package provides FFmpeg-based GStreamer plug-ins.
+
+
+%prep
+%setup -q -n gst-ffmpeg-%{version} -a 1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch20 -p1
+rm -r gst-libs/ext/libav
+mv libav-%{libav_ver} gst-libs/ext/libav
+
+
+%build
+# Note no --with-system-ffmpeg *for now*, as gst-ffmpeg wants libav-0.8,
+# and the system ffmpeg is 0.11, which is more or less libav-0.9
+%configure --disable-dependency-tracking --disable-static \
+ --with-package-name="gst-plugins-ffmpeg rpmfusion rpm" \
+ --with-package-origin="http://rpmfusion.org/" \
+ --with-ffmpeg-extra-configure="--enable-runtime-cpudetect --arch=%{_target_cpu} --optflags=\\\"%{optflags}\\\""
+%{make_build} V=1
+
+
+%install
+%{make_install} V=1
+rm %{buildroot}%{_libdir}/gstreamer-0.10/libgst*.la
+
+
+%files
+%doc AUTHORS ChangeLog NEWS README TODO
+%license COPYING
+%{_libdir}/gstreamer-0.10/libgstffmpeg.so
+%{_libdir}/gstreamer-0.10/libgstffmpegscale.so
+%{_libdir}/gstreamer-0.10/libgstpostproc.so
+
+
+%changelog
+* Tue Feb 04 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> - 0.10.13-25
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Wed Dec 04 2019 Dominik Mierzejewski <rpm(a)greysector.net> - 0.10.13-24
+- clean up spec, use modern macros
+
+* Wed Nov 20 2019 Dominik Mierzejewski <rpm(a)greysector.net> - 0.10.13-23
+- update bundled libav to 0.8.21
+- fix build with orc >= 0.4.30
+
+* Fri Aug 09 2019 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> - 0.10.13-22
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Mon Mar 04 2019 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> - 0.10.13-21
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Thu Jul 26 2018 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> - 0.10.13-20
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Thu Mar 01 2018 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> - 0.10.13-19
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 0.10.13-18
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Sun Mar 19 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 0.10.13-17
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Wed Nov 09 2016 Nicolas Chauvet <kwizart(a)gmail.com> - 0.10.13-16
+- Update libva to 0.8.18
+
+* Sat May 16 2015 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-15
+- Upgrade the buildin libav to 0.8.17 to get all the security fixes from
+ upstream libav
+
+* Wed Oct 1 2014 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-14
+- Upgrade the buildin libav to 0.8.16 to get all the security fixes from
+ upstream libav
+
+* Fri Aug 29 2014 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-13
+- Upgrade the buildin libav to 0.8.15 to get all the security fixes from
+ upstream libav
+
+* Sun Jun 15 2014 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-12
+- Upgrade the buildin libav to 0.8.12 to get all the security fixes from
+ upstream libav
+
+* Sun Mar 2 2014 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-11
+- Upgrade the buildin libav to 0.8.10 to get all the security fixes from
+ upstream libav
+
+* Sat Nov 16 2013 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-10
+- Upgrade the buildin libav to 0.8.9 to get all the security fixes from
+ upstream libav
+
+* Thu Aug 8 2013 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-9
+- Upgrade the buildin libav to 0.8.8 to get all the security fixes from
+ upstream libav
+
+* Mon Mar 25 2013 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-8
+- Upgrade the buildin libav to 0.8.6 to get all the security fixes from
+ upstream libav
+
+* Sun Mar 10 2013 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-7
+- Add a patch from upstream libav to fix miscompilation with gcc-4.8
+ (rf#2713, libav#388)
+
+* Sat Mar 2 2013 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-6
+- Upgrade the buildin libav to 0.8.5 to get all the security fixes from
+ upstream libav
+
+* Sat Nov 24 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 0.10.13-5
+- Rebuilt for FFmpeg 1.0
+
+* Sun Nov 4 2012 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-4
+- Upgrade the buildin libav to 0.8.4 to get all the security fixes from
+ upstream libav
+- Build included libav with the default RPM_OPT_FLAGS (rf#2560, rf#2472)
+
+* Thu Jul 12 2012 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-3
+- Switch to the build in libav for now, gst-ffmpeg wants libav-0.8,
+ and the system ffmpeg is 0.11, which is more or less the unreleased
+ libav-0.9. Once libav-0.9 gets officially released gst-ffmpeg will
+ hopefully switch to it
+- Upgrade the buildin libav to 0.8.3 to get all the security fixes from
+ upstream libav
+
+* Tue Feb 28 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 0.10.13-2
+- Rebuilt for x264/FFmpeg
+
+* Sun Jan 29 2012 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.13-1
+- New upstream release 0.10.13 (rf#2118, rf#2069)
+
+* Sun Sep 4 2011 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.12-1
+- New upstream release 0.10.12
+- Rebuild for ffmpeg-0.8
+
+* Thu Apr 21 2011 Hans de Goede <j.w.r.degoede(a)gmail.com> - 0.10.11-2
+- Rebuild for proper package kit magic provides (rhbz#695730, rf#1707)
+
+* Sat Jul 17 2010 Hans de Goede <j.w.r.degoede(a)gmail.com> 0.10.11-1
+- New upstream release 0.10.11
+
+* Tue Jun 22 2010 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.10-2
+- Rebuild to get the proper magic gstreamer provides for packagekit (rf1267)
+
+* Sun Mar 14 2010 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.10-1
+- New upstream release 0.10.10
+
+* Sat Nov 7 2009 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.9-1
+- New upstream release 0.10.9
+
+* Tue Oct 20 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.10.8-2
+- rebuilt
+
+* Tue Aug 11 2009 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.8-1
+- New upstream release 0.10.8
+
+* Wed Jun 17 2009 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.7-2
+- Rebuild for changes in the gstreamer provides script
+
+* Sun Mar 22 2009 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.7-1
+- New upstream release 0.10.7
+
+* Wed Dec 17 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.6-1
+- New upstream release 0.10.6
+
+* Sun Sep 14 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.5-1
+- New upstream release 0.10.5
+- Drop all patches, all upstreamed <yeah>
+
+* Thu Jul 24 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.4-2
+- Release bump for rpmfusion build
+
+* Thu May 22 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.4-1
+- New upstream release 0.10.4
+- Drop several upstreamed patches
+
+* Thu May 8 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.3-5
+- Fix playback of wvc1 videos (livna bug 1960)
+
+* Thu Apr 10 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.3-4
+- Disable ffdec_faad as this has issues (use gstreamer-plugins-bad instead)
+ (livna bug 1935)
+
+* Sun Feb 10 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.3-3
+- Make gstreamer-ffmpeg work with the new swscaler enabled ffmpeg, this is done
+ by disabling the ffvideoscale (FFMPEG Scale) element and another small
+ patch (livna bug 1862)
+
+* Tue Feb 5 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.3-2
+- Rebuild for new ffmpeg
+
+* Sat Dec 15 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.3-1
+- New upstream 0.10.3 release
+- Use default RPM_OPT_FLAGS, as we we no longer compile our own ffmpeg
+- Drop unneeded libtool BuildRequires
+
+* Mon Nov 12 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.2-5
+- Rebuild for new ffmpeg
+
+* Wed Oct 10 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.2-4
+- Stop gst-inspect --print-all from crashing when we are loaded (reported on
+ the mailing list)
+
+* Fri Sep 21 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.2-3
+- Merge freshrpms spec into livna spec for rpmfusion:
+- Set release to 3 to be higher as both livna and freshrpms latest release
+- Set package name and origin to rpmfusion
+- Update license tag for new license tag guidelines
+- Build in livna development for testing and for new ffmpeg in livna
+
+* Thu Mar 29 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.2-2
+- Rebuild so that the demuxers get build too (livna bz 1464)
+
+* Fri Jan 19 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.2-1
+- Official upstream 0.10.2 release
+
+* Mon Dec 18 2006 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.2-0.4.20061108
+- Rebuild for new ffmpeg
+
+* Wed Nov 22 2006 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.2-0.3.20061108
+- link libgstpostproc.so with -lpostproc (bug #1288)
+
+* Thu Nov 9 2006 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.2-0.2.20061108
+- Add missing liboil-devel BR
+
+* Wed Nov 8 2006 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.2-0.1.20061108
+- New release based on CVS snapshot as upstream hasn't made a new release
+ in a while, this fixes bug lvn1235
+
+* Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.10.1-4
+- rebuilt for unwind info generation, broken in gcc-4.1.1-21
+
+* Sun Sep 24 2006 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.1-3
+- Rebuild for FC-6
+
+* Sun Aug 27 2006 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.1-2
+- Fix compilation with newer ffmpeg
+- drop unnecesarry gcc-c++ BR
+
+* Sun Jul 30 2006 Hans de Goede <j.w.r.degoede(a)hhs.nl> 0.10.1-1
+- Minor specfile cleanups for livna submission.
+- Add a patch to use the system ffmpeg instead of the included one
+
+* Fri Mar 31 2006 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.10.1-0.gst.1
+- update for new release
+
+* Wed Mar 29 2006 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.10.0.2-0.gst.1
+- update for new prerelease
+
+* Fri Mar 17 2006 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.10.0-0.gst.3
+- allow "gstreamer" define to be overridden
+
+* Wed Dec 14 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.10.0-0.gst.2
+- rebuild against glib 2.8
+
+* Mon Dec 05 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.10.0-0.gst.1
+- new release
+
+* Thu Dec 01 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.9.7-0.gst.1
+- new release with 0.10 major/minor
+
+* Sat Nov 12 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.9.5-0.gst.1
+- new upstream release
+
+* Wed Oct 26 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.9.4-0.gst.1
+- new upstream release
+
+* Mon Oct 03 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.9.3-0.gst.1
+- new upstream release
+
+* Sat Sep 17 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.6-0.gst.1 new upstream release
+
+* Tue Jun 21 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.5-0.gst.1: for our repo
+
+* Mon Jun 13 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.5-0.lvn.1: new release
+
+* Fri Mar 11 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.4-0.lvn.1: new release
+
+* Fri Dec 31 2004 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.3-0.lvn.1: new release
+
+* Fri Dec 24 2004 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.2.2-0.lvn.1: new prerelease
+
+* Tue Oct 12 2004 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.2-0.lvn.1: new upstream release
+
+* Fri Jul 16 2004 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.1-0.lvn.1: new upstream release
+
+* Fri May 21 2004 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.0-0.lvn.2: update for FC2 and SDL-devel not requiring alsa-lib-devel
+
+* Tue Mar 16 2004 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.8.0-0.lvn.1: new source release, changed base name to gstreamer
+
+* Fri Mar 05 2004 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.7.1-0.lvn.2: sync with FreshRPMS
+
+* Tue Mar 02 2004 Thomas Vander Stichele <thomas at apestaart dot org>
+- 0.7.1-0.lvn.1: First package for rpm.livna.org
diff --git a/sources b/sources
new file mode 100644
index 0000000..0d8b63e
--- /dev/null
+++ b/sources
@@ -0,0 +1,2 @@
+SHA512 (libav-0.8.21.tar.xz) = 3299ad0135f6c5d97bca3c1feb6ea043cd4f7482bf8fc647882f715e0e4dc394c1e75a4db13501a128115728466c308bec6a20abbc2b4b7e4d97653776942707
+SHA512 (gst-ffmpeg-0.10.13.tar.bz2) = f1141fc73b4bf1d774053ce53c4a67d5e600d6f0118ee7824cd2ff4fc8af8ba1dfbd5cf82d9e15872f3e6f8730112ddfc520a7d8df3cf605a9725e959f37e6ed
4 years, 4 months