Package: jugglemaster Version: 0.4-7 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..4161e5b --- /dev/null +++ b/debian/patches/ffmpeg_2.9.patch @@ -0,0 +1,44 @@ +Description: Replace deprecated FFmpeg API +Author: Andreas Cadhalpun <andreas.cadhal...@googlemail.com> +Last-Update: <2015-11-02> + +--- jugglemaster-0.4.orig/src/jmdlx/Makefile ++++ jugglemaster-0.4/src/jmdlx/Makefile +@@ -10,7 +10,7 @@ INSTALL=install + + ifeq ($(HAVE_FFMPEG), 1) + CXXFLAGS+=-DHAVE_AVCODEC_H +-LIBS+=-lavcodec ++LIBS+=-lavcodec -lavutil + endif + + ifeq ($(DEBUG), 1) +--- jugglemaster-0.4.orig/src/jmdlx/print.cpp ++++ jugglemaster-0.4/src/jmdlx/print.cpp +@@ -553,7 +553,7 @@ int Print::printMPEG() { + } + + c= avcodec_alloc_context3(codec); +- picture= avcodec_alloc_frame(); ++ picture= av_frame_alloc(); + + c->bit_rate = 400000; + c->width = jmlib->getImageWidth(); +@@ -563,7 +563,7 @@ int Print::printMPEG() { + c->time_base.num = 1; + c->gop_size = 30; + c->max_b_frames=1; +- c->pix_fmt = PIX_FMT_YUV420P; ++ c->pix_fmt = AV_PIX_FMT_YUV420P; + + if (avcodec_open2(c, codec, NULL) < 0) { + return(1); +@@ -653,7 +653,7 @@ int Print::printMPEG() { + + avcodec_close(c); + free(c); +- free(picture); ++ av_frame_free(&picture); + + fclose(outputfile); + return(0); diff --git a/debian/patches/series b/debian/patches/series index 49df5ba..0db2cc2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -14,3 +14,4 @@ loadavg.patch libav10.patch include-header-for-memset.patch wx3.0-compat.patch +ffmpeg_2.9.patch