[med-svn] r14534 - in trunk/packages/amide/trunk/debian: . patches
Andreas Tille
tille at alioth.debian.org
Tue Aug 27 14:35:46 UTC 2013
Author: tille
Date: 2013-08-27 14:35:46 +0000 (Tue, 27 Aug 2013)
New Revision: 14534
Added:
trunk/packages/amide/trunk/debian/patches/deprecated-libav.patch
Modified:
trunk/packages/amide/trunk/debian/changelog
trunk/packages/amide/trunk/debian/patches/series
Log:
libavcodec removed some more deprecated functions
Modified: trunk/packages/amide/trunk/debian/changelog
===================================================================
--- trunk/packages/amide/trunk/debian/changelog 2013-08-26 20:47:48 UTC (rev 14533)
+++ trunk/packages/amide/trunk/debian/changelog 2013-08-27 14:35:46 UTC (rev 14534)
@@ -8,6 +8,10 @@
- debhelper 9
* Make use of dh-autoreconf to have better chances to build twice
in a row (not finished yet)
+ * debian/patches/deprecated-libav.patch: recent libavcodec removed
+ some more deprecated functions (thanks for the patch to
+ Andreas Moog <andreas.moog at warperbbs.de>)
+ Closes: #720779
-- Andreas Tille <tille at debian.org> Mon, 26 Aug 2013 14:53:06 +0200
Added: trunk/packages/amide/trunk/debian/patches/deprecated-libav.patch
===================================================================
--- trunk/packages/amide/trunk/debian/patches/deprecated-libav.patch (rev 0)
+++ trunk/packages/amide/trunk/debian/patches/deprecated-libav.patch 2013-08-27 14:35:46 UTC (rev 14534)
@@ -0,0 +1,26 @@
+Author: Andreas Moog <andreas.moog at warperbbs.de>
+LastChanged: Tue, 27 Aug 2013 13:34:56 +0200
+BugsDebian: http://bugs.debian.org/720779
+Description: recent libavcodec removed some more deprecated functions and
+ your source code needs some adaptation.
+
+--- amide-1.0.4.orig/src/mpeg_encode.c
++++ amide-1.0.4/src/mpeg_encode.c
+@@ -261,7 +261,7 @@
+ return NULL;
+ }
+
+- encode->context = avcodec_alloc_context();
++ encode->context = avcodec_alloc_context3(NULL);
+ if (!encode->context) {
+ g_warning("couldn't allocate memory for encode->context");
+ encode_free(encode);
+@@ -299,7 +299,7 @@
+ encode->context->trellis=2; /* turn trellis quantization on */
+
+ /* open it */
+- if (avcodec_open(encode->context, encode->codec) < 0) {
++ if (avcodec_open2(encode->context, encode->codec, NULL) < 0) {
+ g_warning("could not open codec");
+ encode_free(encode);
+ return NULL;
Modified: trunk/packages/amide/trunk/debian/patches/series
===================================================================
--- trunk/packages/amide/trunk/debian/patches/series 2013-08-26 20:47:48 UTC (rev 14533)
+++ trunk/packages/amide/trunk/debian/patches/series 2013-08-27 14:35:46 UTC (rev 14534)
@@ -1,2 +1,3 @@
10_all.patch
gcc-4.8_format-security.patch
+deprecated-libav.patch
More information about the debian-med-commit
mailing list