Package: libam7xxx Version: 0.1.5-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..988e639 --- /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> + +--- libam7xxx-0.1.5.orig/examples/am7xxx-play.c ++++ libam7xxx-0.1.5/examples/am7xxx-play.c +@@ -216,7 +216,7 @@ static int video_output_init(struct vide + */ + if (image_format == AM7XXX_IMAGE_FORMAT_NV12) { + fprintf(stdout, "using raw output format\n"); +- output_codec_ctx->pix_fmt = PIX_FMT_NV12; ++ output_codec_ctx->pix_fmt = AV_PIX_FMT_NV12; + output_ctx->codec_ctx = output_codec_ctx; + output_ctx->raw_output = 1; + ret = 0; diff --git a/debian/patches/series b/debian/patches/series index 884d232..61d4346 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ examples-the-examples-were-always-meant-to-be-all-un.patch +ffmpeg_2.9.patch