Your message dated Sun, 06 Mar 2016 22:36:29 +0000
with message-id <[email protected]>
and subject line Bug#803861: fixed in spek 0.8.2-4
has caused the Debian Bug report #803861,
regarding spek: FTBFS with FFmpeg 2.9
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
803861: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803861
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: spek
Version: 0.8.2-3.2
Severity: important
Tags: patch
User: [email protected]
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..b123a96
--- /dev/null
+++ b/debian/patches/ffmpeg_2.9.patch
@@ -0,0 +1,33 @@
+Description: Replace deprecated FFmpeg API
+Author: Andreas Cadhalpun <[email protected]>
+Last-Update: <2015-11-02>
+
+--- spek-0.8.2.orig/src/spek-audio.cc
++++ spek-0.8.2/src/spek-audio.cc
+@@ -199,7 +199,7 @@ AudioFileImpl::AudioFileImpl(
+     this->packet.data = nullptr;
+     this->packet.size = 0;
+     this->offset = 0;
+-    this->frame = avcodec_alloc_frame();
++    this->frame = av_frame_alloc();
+     this->buffer_size = 0;
+     this->buffer = nullptr;
+     this->frames_per_interval = 0;
+@@ -215,7 +215,7 @@ AudioFileImpl::~AudioFileImpl()
+     if (this->frame) {
+         // TODO: Remove this check after Debian switches to libav 9.
+ #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0)
+-        avcodec_free_frame(&this->frame);
++        av_frame_free(&this->frame);
+ #else
+         av_freep(&this->frame);
+ #endif
+@@ -255,7 +255,7 @@ int AudioFileImpl::read()
+ 
+     for (;;) {
+         while (this->packet.size > 0) {
+-            avcodec_get_frame_defaults(this->frame);
++            av_frame_unref(this->frame);
+             auto codec_context = this->format_context->streams[this->audio_stream]->codec;
+             int got_frame = 0;
+             int len = avcodec_decode_audio4(codec_context, this->frame, &got_frame, &this->packet);
diff --git a/debian/patches/series b/debian/patches/series
index 8215fd9..d33812b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fix-compilation-with-libav-8.patch
 
+ffmpeg_2.9.patch

--- End Message ---
--- Begin Message ---
Source: spek
Source-Version: 0.8.2-4

We believe that the bug you reported is fixed in the latest version of
spek, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander Kojevnikov <[email protected]> (supplier of updated spek 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 10 Jan 2016 17:52:24 -0800
Source: spek
Binary: spek
Architecture: source
Version: 0.8.2-4
Distribution: unstable
Urgency: low
Maintainer: Alexander Kojevnikov <[email protected]>
Changed-By: Alexander Kojevnikov <[email protected]>
Description:
 spek       - acoustic spectrum analyser
Closes: 803861
Changes:
 spek (0.8.2-4) unstable; urgency=low
 .
   * Fix build with FFmpeg 2.9 (Closes: #803861)
Checksums-Sha1:
 c8e11d93820dd1ed091f5be463953f190018c0c8 1896 spek_0.8.2-4.dsc
 bcd068c867197aef4583f3f650f44a6c25b67c5a 4748 spek_0.8.2-4.debian.tar.xz
Checksums-Sha256:
 07607898c047a2bc28956f9eeb96dd641507c9be620aca74321a642621a4adfd 1896 
spek_0.8.2-4.dsc
 080176b8afacd4022443d671600b736a991e3f04455e897b69deca95b3e5bccc 4748 
spek_0.8.2-4.debian.tar.xz
Files:
 55aa74cad7d142e2293cf7fc5df00933 1896 sound optional spek_0.8.2-4.dsc
 fcc7fa4fd92028b6a0dd0412f3b1e724 4748 sound optional spek_0.8.2-4.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJW3KgSAAoJEGny/FFupxmTfCwP/AuQGQDfiecM30xIckRAtUnT
39uBGdNNtSyuLWqO/8+SWl2iUOLI6CR2ALeGj8mSmRDoW0Aaue+PsA+8kIIe7+7G
Q58Y6Ol6CnMOwRaFg0qTyVO/+iyJWJfF7XEvYkb3fvPUd4zDClrfC+g4X0GMPDJE
s7r61EJPa6TslRFVJNCTpPfWzAkXqETMTxyJxzDK6kwjONsREISd2SLhr5REaoZ/
IB5z8XM9YSWeT1XjHcJpDxKd/t9CdsgCn67x89bZe9Zyjc4i6OKblFPoCT2TLS3t
CVLPtAR3LZmqG5Tnw4OKEBMC2rrAETKWIoGE40Cd1PkHleywMfes/2orSmPx2k0p
Tgz5IOwRXwZcCweXyqR4vg9IlZhHpe9alabcyVn9+o95qI5dzQC4Jh9dknCMVtiS
1iB3zYerSObsD6R2z2QEY/8qbfpEToGSVIW+04dIN9NIgob5Vcl09vZWExUo6fhJ
wJjmLyD+oVNN/R3RpCtzqZUe0fJAk/h1xOm3CSth+1w2+HvMzbuhrwZQIulnhMI5
m33N1snwXhc2a/lE+FpzJ3BbhG3z4NLg66C3UJd0cbMQjKrPuouWWBqU0c3brjqe
lxGIWeTqfkpZ7c71eCuzYkaudJEGxLP89yoFutYA+1CzT/1mJB0t6p6r0P9dWmGv
EAs/sJz+GFvxf8NqQiUN
=L6h2
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to