Your message dated Thu, 10 Mar 2016 23:21:50 +0000
with message-id <[email protected]>
and subject line Bug#803837: fixed in lightspark 0.7.2+git20150512-2.1
has caused the Debian Bug report #803837,
regarding lightspark: 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.)
--
803837: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803837
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lightspark
Version: 0.7.2+git20150512-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..e0b9d65
--- /dev/null
+++ b/debian/patches/ffmpeg_2.9.patch
@@ -0,0 +1,105 @@
+Description: Replace deprecated FFmpeg API
+Author: Andreas Cadhalpun <[email protected]>
+Last-Update: <2015-11-02>
+
+--- lightspark-0.7.2+git20150512.orig/src/backends/decoder.cpp
++++ lightspark-0.7.2+git20150512/src/backends/decoder.cpp
+@@ -166,7 +166,7 @@ FFMpegVideoDecoder::FFMpegVideoDecoder(L
+ else
+ status=INIT;
+
+- frameIn=avcodec_alloc_frame();
++ frameIn=av_frame_alloc();
+ }
+
+ FFMpegVideoDecoder::FFMpegVideoDecoder(AVCodecContext* _c, double frameRateHint):
+@@ -201,7 +201,7 @@ FFMpegVideoDecoder::FFMpegVideoDecoder(A
+ if(fillDataAndCheckValidity())
+ status=VALID;
+
+- frameIn=avcodec_alloc_frame();
++ frameIn=av_frame_alloc();
+ }
+
+ FFMpegVideoDecoder::~FFMpegVideoDecoder()
+@@ -210,7 +210,7 @@ FFMpegVideoDecoder::~FFMpegVideoDecoder(
+ avcodec_close(codecContext);
+ if(ownedContext)
+ av_free(codecContext);
+- av_free(frameIn);
++ av_frame_free(&frameIn);
+ }
+
+ //setSize is called from the routine that inserts new frames
+@@ -274,7 +274,7 @@ bool FFMpegVideoDecoder::decodeData(uint
+ assert_and_throw(ret==(int)datalen);
+ if(frameOk)
+ {
+- assert(codecContext->pix_fmt==PIX_FMT_YUV420P);
++ assert(codecContext->pix_fmt==AV_PIX_FMT_YUV420P);
+
+ if(status==INIT && fillDataAndCheckValidity())
+ status=VALID;
+@@ -301,7 +301,7 @@ bool FFMpegVideoDecoder::decodePacket(AV
+ assert_and_throw(ret==(int)pkt->size);
+ if(frameOk)
+ {
+- assert(codecContext->pix_fmt==PIX_FMT_YUV420P);
++ assert(codecContext->pix_fmt==AV_PIX_FMT_YUV420P);
+
+ if(status==INIT && fillDataAndCheckValidity())
+ status=VALID;
+@@ -476,7 +476,7 @@ FFMpegAudioDecoder::FFMpegAudioDecoder(L
+ else
+ status=INIT;
+ #if HAVE_AVCODEC_DECODE_AUDIO4
+- frameIn=avcodec_alloc_frame();
++ frameIn=av_frame_alloc();
+ #endif
+ }
+
+@@ -502,7 +502,7 @@ FFMpegAudioDecoder::FFMpegAudioDecoder(L
+ if(fillDataAndCheckValidity())
+ status=VALID;
+ #if HAVE_AVCODEC_DECODE_AUDIO4
+- frameIn=avcodec_alloc_frame();
++ frameIn=av_frame_alloc();
+ #endif
+ }
+
+@@ -522,7 +522,7 @@ FFMpegAudioDecoder::FFMpegAudioDecoder(A
+ if(fillDataAndCheckValidity())
+ status=VALID;
+ #if HAVE_AVCODEC_DECODE_AUDIO4
+- frameIn=avcodec_alloc_frame();
++ frameIn=av_frame_alloc();
+ #endif
+ }
+
+@@ -532,7 +532,7 @@ FFMpegAudioDecoder::~FFMpegAudioDecoder(
+ if(ownedContext)
+ av_free(codecContext);
+ #if HAVE_AVCODEC_DECODE_AUDIO4
+- av_free(frameIn);
++ av_frame_free(&frameIn);
+ #endif
+ }
+
+@@ -607,7 +607,7 @@ uint32_t FFMpegAudioDecoder::decodeData(
+ }
+
+ #if HAVE_AVCODEC_DECODE_AUDIO4
+- avcodec_get_frame_defaults(frameIn);
++ av_frame_unref(frameIn);
+ int frameOk=0;
+ int32_t ret=avcodec_decode_audio4(codecContext, frameIn, &frameOk, &pkt);
+ if(frameOk==0)
+@@ -664,7 +664,7 @@ uint32_t FFMpegAudioDecoder::decodePacke
+ int maxLen=AVCODEC_MAX_AUDIO_FRAME_SIZE;
+
+ #if HAVE_AVCODEC_DECODE_AUDIO4
+- avcodec_get_frame_defaults(frameIn);
++ av_frame_unref(frameIn);
+ int frameOk=0;
+ int ret=avcodec_decode_audio4(codecContext, frameIn, &frameOk, pkt);
+ if(frameOk==0)
diff --git a/debian/patches/series b/debian/patches/series
index 900d479..d4d29d1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
#fix-for-llvm35.patch
#libav10.patch
assert.patch
+ffmpeg_2.9.patch
--- End Message ---
--- Begin Message ---
Source: lightspark
Source-Version: 0.7.2+git20150512-2.1
We believe that the bug you reported is fixed in the latest version of
lightspark, 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.
Sebastian Ramacher <[email protected]> (supplier of updated lightspark
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: Tue, 08 Mar 2016 23:54:00 +0100
Source: lightspark
Binary: lightspark browser-plugin-lightspark lightspark-common lightspark-dbg
Architecture: source
Version: 0.7.2+git20150512-2.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Flash Maintainers <[email protected]>
Changed-By: Sebastian Ramacher <[email protected]>
Description:
browser-plugin-lightspark - High-performance SWF player - Mozilla Plugin
(experimental)
lightspark - High-performance SWF player (experimental)
lightspark-common - High-performance SWF player - common data
lightspark-dbg - High-performance SWF player (experimental) - Debug symbols
Closes: 803837
Changes:
lightspark (0.7.2+git20150512-2.1) unstable; urgency=medium
.
* Non-maintainer upload.
.
[ Andreas Cadhalpun ]
* Fix build with ffmpeg 3.0. (Closes: #803837)
Checksums-Sha1:
996527e54a2805116ae36e2d399cbdf94ca28694 2653
lightspark_0.7.2+git20150512-2.1.dsc
c08df4d276a804b28117e6c4e0734dd675ae3655 13192
lightspark_0.7.2+git20150512-2.1.debian.tar.xz
Checksums-Sha256:
8e83efa0b55be1390f71425d19cc0f7522bea739cc3f3d041b58b7b593118b57 2653
lightspark_0.7.2+git20150512-2.1.dsc
585c39860be3d5f63da8f053e5e4dc82c9227c188cab7cc45a824d16103abf48 13192
lightspark_0.7.2+git20150512-2.1.debian.tar.xz
Files:
63c775af3257ab1a44ee602fdbfa77b1 2653 utils optional
lightspark_0.7.2+git20150512-2.1.dsc
451b80d3fa43470673717d5b475c7e7d 13192 utils optional
lightspark_0.7.2+git20150512-2.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJW31lAAAoJEGny/FFupxmTpmUP/2TeYBcsYNomB5S3Z7ns88aN
BeCJSJkCsOYDxxqyzOr5Ocw5mlN1KvNFifEyG4iv0FN+YuyhkNbj4JXeB3BxlWYZ
VZpPlGNWzB65WylDslLgDaeEubSw6X1UK5+Qe2/SUj+YgEPLkQIhsdhEIpj6dstk
1KZVl/MeGOb35tRx93XDAhEPux7jO0aSLdq8mbHnaSgT4okc5Xw3dhFrQlQ7v69H
BN7QWylSg+IBi5nPhGBLPTLtax94EUULRBRwiD1vt1xajwUgQ3nK6Z+OqvY55m9J
ClWGwboEz3x8LPARObZjMvIQhs8v5IzfFuRMrMxg/TnPYtcTTEjSpiTIg2IbYuNt
v5OBh4MAdJtgPKsu3hOfUN+AQwkBWk8OJA4nGzoIKkJthqBLKri5oEryWt/I78M2
pT8szi9kt1ssBmfFieLzqvAFYZhsNhLVd7UidTCSj363UE9F9D5hJeZjNzYS4stK
idwvbAknmNeNbiEdkgW4HfIkWsN1qQsC63/w3qh23hcDRxQ2ruej5gmw7/FyKrvv
WDfyC1jTs9ZBoaZhZOn8+NMFVzC9a7GmO1UhjCI2QNnocOD+d1P9XDqxEaUoPkiJ
/19Nq5NYmUepz7ZDKUAon6TnWagcXRpb/FNVSqkAsif8J4VSFurkTO2/HOTbazpL
0zwoeFz5guLrqydleHeV
=RrIB
-----END PGP SIGNATURE-----
--- End Message ---