Package: info-beamer Version: 1.0~pre3-1 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..35d71e2 --- /dev/null +++ b/debian/patches/ffmpeg_2.9.patch @@ -0,0 +1,38 @@ +Description: Replace deprecated FFmpeg API +Author: Andreas Cadhalpun <andreas.cadhal...@googlemail.com> +Last-Update: <2015-11-02> + +--- info-beamer-1.0~pre3.orig/video.c ++++ info-beamer-1.0~pre3/video.c +@@ -64,9 +64,9 @@ static void video_free(video_t *video) { + if (video->scaler) + sws_freeContext(video->scaler); + if (video->raw_frame) +- av_free(video->raw_frame); ++ av_frame_free(&video->raw_frame); + if (video->scaled_frame) +- av_free(video->scaled_frame); ++ av_frame_free(&video->scaled_frame); + + if (video->codec_context) + avcodec_close(video->codec_context); +@@ -78,7 +78,7 @@ static void video_free(video_t *video) { + + static int video_open(video_t *video, const char *filename) { + video->finished = 0; +- video->format = PIX_FMT_RGB24; ++ video->format = AV_PIX_FMT_RGB24; + + if (avformat_open_input(&video->format_context, filename, NULL, NULL) || + avformat_find_stream_info(video->format_context, NULL) < 0) { +@@ -143,8 +143,8 @@ static int video_open(video_t *video, co + fprintf(stderr, INFO("fps: %lf\n"), video->fps); + + /* Get framebuffers */ +- video->raw_frame = avcodec_alloc_frame(); +- video->scaled_frame = avcodec_alloc_frame(); ++ video->raw_frame = av_frame_alloc(); ++ video->scaled_frame = av_frame_alloc(); + + if (!video->raw_frame || !video->scaled_frame) { + fprintf(stderr, ERROR("cannot preallocate frames\n")); diff --git a/debian/patches/series b/debian/patches/series index e69de29..f762d21 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -0,0 +1 @@ +ffmpeg_2.9.patch