[SCM] wxsvg/master: Add patch from anton at khirnov.net to fix FTBFS with libav 10
sramacher at users.alioth.debian.org
sramacher at users.alioth.debian.org
Tue Feb 25 13:12:02 UTC 2014
The following commit has been merged in the master branch:
commit 120d05a91ebd2d796e29c2ef82c9246c13d97605
Author: Sebastian Ramacher <sramacher at debian.org>
Date: Tue Feb 25 13:13:38 2014 +0100
Add patch from anton at khirnov.net to fix FTBFS with libav 10
diff --git a/debian/patches/libav10.patch b/debian/patches/libav10.patch
new file mode 100644
index 0000000..410b26c
--- /dev/null
+++ b/debian/patches/libav10.patch
@@ -0,0 +1,20 @@
+Description: Fix build failure with libav 10
+Author: anton at khirnov.net
+Bug-Debian: https://bugs.debian.org/739454
+Last-Update: 2014-02-25
+
+Index: wxsvg-1.2~dfsg0/src/mediadec_ffmpeg.cpp
+===================================================================
+--- wxsvg-1.2~dfsg0.orig/src/mediadec_ffmpeg.cpp 2013-02-13 14:38:11.000000000 +0000
++++ wxsvg-1.2~dfsg0/src/mediadec_ffmpeg.cpp 2014-02-25 06:48:23.341289700 +0000
+@@ -108,8 +108,8 @@
+ float result = -1;
+ for (unsigned int i = 0; i < m_formatCtx->nb_streams; i++) {
+ AVStream* st = m_formatCtx->streams[i];
+- if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && st->r_frame_rate.num && st->r_frame_rate.den) {
+- result = ((float) st->r_frame_rate.num) / st->r_frame_rate.den;
++ if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && st->avg_frame_rate.num && st->avg_frame_rate.den) {
++ result = ((float) st->avg_frame_rate.num) / st->avg_frame_rate.den;
+ break;
+ }
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ee77a31
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+libav10.patch
--
wxsvg packaging
More information about the pkg-multimedia-commits
mailing list