Package: wxsvg Version: 1.4~dfsg-3 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..4f55464 --- /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> + +--- wxsvg-1.4~dfsg.orig/src/mediadec_ffmpeg.cpp ++++ wxsvg-1.4~dfsg/src/mediadec_ffmpeg.cpp +@@ -265,7 +265,7 @@ wxImage wxFfmpegMediaDecoder::GetNextFra + avcodec_decode_video2(m_codecCtx, m_frame, &frameFinished, &packet); + if (frameFinished) { + SwsContext* imgConvertCtx = sws_getContext(m_codecCtx->width, m_codecCtx->height, m_codecCtx->pix_fmt, +- m_width, m_height, PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL); ++ m_width, m_height, AV_PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL); + if (imgConvertCtx == NULL) + return wxImage(); + diff --git a/debian/patches/series b/debian/patches/series index ee77a31..f6aab62 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ libav10.patch +ffmpeg_2.9.patch