[med-svn] [amide] 01/02: d/p/ffmpeg-35: fix compilation with ffpeg-3.5, Closes: #888342
Gert Wollny
gewo at moszumanska.debian.org
Sun Jan 28 11:41:37 UTC 2018
This is an automated email from the git hooks/post-receive script.
gewo pushed a commit to branch master
in repository amide.
commit 58dd515507a4df2d4815c85cc25e4d766863db29
Author: Gert Wollny <gewo at debian.org>
Date: Sun Jan 28 12:12:28 2018 +0100
d/p/ffmpeg-35: fix compilation with ffpeg-3.5, Closes: #888342
---
debian/patches/ffmpeg-35.patch | 25 +++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 26 insertions(+)
diff --git a/debian/patches/ffmpeg-35.patch b/debian/patches/ffmpeg-35.patch
new file mode 100644
index 0000000..9c9c945
--- /dev/null
+++ b/debian/patches/ffmpeg-35.patch
@@ -0,0 +1,25 @@
+Author: Gert Wollny <gw.fossdev at gmail.com>
+Description: Fix compilation with ffmpeg 3.5, i.e. drop useless parameter
+ and replace some deprecated call
+Debian-Bug: https://bugs.debian.org/888342
+Last-Changed: 2018-01-28
+
+--- a/src/mpeg_encode.c 2018-01-28 12:07:17.844078291 +0100
++++ b/src/mpeg_encode.c 2018-01-28 12:03:18.236070008 +0100
+@@ -305,7 +305,6 @@
+
+ /* encoding parameters */
+ encode->context->sample_aspect_ratio= (AVRational){1,1}; /* our pixels are square */
+- encode->context->me_method=5; /* 5 is epzs */
+ encode->context->trellis=2; /* turn trellis quantization on */
+
+ /* open it */
+@@ -379,7 +378,7 @@
+
+ if (ret >= 0 && got_packet) {
+ fwrite(pkt.data, 1, pkt.size, encode->output_file);
+- av_free_packet(&pkt);
++ av_packet_unref(&pkt);
+ }
+ return (ret >= 0) ? TRUE : FALSE;
+ };
diff --git a/debian/patches/series b/debian/patches/series
index ba59ac6..5194988 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ gsl_2x.patch
libc_2.23.patch
remove-autdated-gnome-macros.patch
amide-1.0.6-disable-gconf-and-gnome-vfs.patch
+ffmpeg-35.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/amide.git
More information about the debian-med-commit
mailing list