Package: survex
Version: 1.2.22-1
Severity: important
Tags: patch
User: pkg-multimedia-maintain...@lists.alioth.debian.org
Usertags: ffmpeg2.9

Dear Maintainer,

your package fails to build with the upcoming ffmpeg 2.9.
This bug will become release-critical at some point when the
ffmpeg2.9 transition gets closer.

Attached is a patch replacing the deprecated functionality.
It also works with ffmpeg 2.8.
Please apply this patch and forward it upstream, if necessary.

These changes have little regression potential.

Best regards,
Andreas

diff --git a/debian/patches/ffmpeg_2.9.patch b/debian/patches/ffmpeg_2.9.patch
new file mode 100644
index 0000000..8c1aa93
--- /dev/null
+++ b/debian/patches/ffmpeg_2.9.patch
@@ -0,0 +1,15 @@
+Description: Replace deprecated FFmpeg API
+Author: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
+Last-Update: <2015-11-02>
+
+--- survex-1.2.20.orig/src/moviemaker.cc
++++ survex-1.2.20/src/moviemaker.cc
+@@ -269,7 +269,7 @@ bool MovieMaker::Open(const char *fnm, i
+     // av_dump_format(oc, 0, fnm, 1);
+ 
+     av_free(sws_ctx);
+-    sws_ctx = sws_getContext(width, height, PIX_FMT_RGB24,
++    sws_ctx = sws_getContext(width, height, AV_PIX_FMT_RGB24,
+ 			     width, height, c->pix_fmt, SWS_BICUBIC,
+ 			     NULL, NULL, NULL);
+     if (sws_ctx == NULL) {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f762d21
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ffmpeg_2.9.patch

Reply via email to