Your message dated Tue, 26 Apr 2016 22:07:49 +0000
with message-id <e1avb93-0007ei...@franck.debian.org>
and subject line Bug#803835: fixed in libextractor 1:1.3-4
has caused the Debian Bug report #803835,
regarding libextractor: 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 ow...@bugs.debian.org
immediately.)


-- 
803835: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803835
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libextractor
Version: 1.3-2
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..050e318
--- /dev/null
+++ b/debian/patches/ffmpeg_2.9.patch
@@ -0,0 +1,168 @@
+Description: Replace deprecated FFmpeg API
+Author: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
+Last-Update: <2015-11-02>
+
+--- libextractor-1.3.orig/src/plugins/previewopus_extractor.c
++++ libextractor-1.3/src/plugins/previewopus_extractor.c
+@@ -296,7 +296,7 @@ static void init_packet(AVPacket *packet
+ /** Initialize one audio frame for reading from the input file */
+ static int init_input_frame(AVFrame **frame)
+ {
+-    if (!(*frame = avcodec_alloc_frame())) {
++    if (!(*frame = av_frame_alloc())) {
+  #if DEBUG
+         fprintf(stderr, "Could not allocate input frame\n");
+ #endif
+@@ -655,7 +655,7 @@ cleanup:
+         av_freep(&converted_input_samples[0]);
+         free(converted_input_samples);
+     }
+-    avcodec_free_frame(&input_frame);
++    av_frame_free(&input_frame);
+ 
+     return ret;
+ }
+@@ -671,7 +671,7 @@ static int init_output_frame(AVFrame **f
+     int error;
+ 
+     /** Create a new frame to store the audio samples. */
+-    if (!(*frame = avcodec_alloc_frame())) {
++    if (!(*frame = av_frame_alloc())) {
+         #if DEBUG
+ 		fprintf(stderr, "Could not allocate output frame\n");
+ 		#endif
+@@ -702,7 +702,7 @@ static int init_output_frame(AVFrame **f
+         #if DEBUG
+ 		fprintf(stderr, "Could allocate output frame samples (error '%s')\n", get_error_text(error));
+ 		#endif
+-        avcodec_free_frame(frame);
++        av_frame_free(frame);
+         return error;
+     }
+ 
+@@ -783,17 +783,17 @@ static int load_encode_and_write(AVAudio
+         #if DEBUG
+ 		fprintf(stderr, "Could not read data from FIFO\n");
+ 		#endif
+-        avcodec_free_frame(&output_frame);
++        av_frame_free(&output_frame);
+         return AVERROR_EXIT;
+     }
+ 
+     /** Encode one frame worth of audio samples. */
+     if (encode_audio_frame(output_frame, output_format_context,
+                            output_codec_context, &data_written)) {
+-        avcodec_free_frame(&output_frame);
++        av_frame_free(&output_frame);
+         return AVERROR_EXIT;
+     }
+-    avcodec_free_frame(&output_frame);
++    av_frame_free(&output_frame);
+     return 0;
+ }
+ /** Write the trailer of the output file container. */
+@@ -907,7 +907,7 @@ extract_audio (struct EXTRACTOR_ExtractC
+       return;
+     }
+ 
+-  if (NULL == (frame = avcodec_alloc_frame ()))
++  if (NULL == (frame = av_frame_alloc ()))
+     {
+ #if DEBUG
+       fprintf (stderr,
+--- libextractor-1.3.orig/src/plugins/thumbnailffmpeg_extractor.c
++++ libextractor-1.3/src/plugins/thumbnailffmpeg_extractor.c
+@@ -153,7 +153,7 @@ seek_cb (void *opaque,
+ static size_t 
+ create_thumbnail (int src_width, int src_height, 
+ 		  int src_stride[],
+-		  enum PixelFormat src_pixfmt, 
++		  enum AVPixelFormat src_pixfmt, 
+ 		  const uint8_t * const src_data[],
+ 		  int dst_width, int dst_height,
+ 		  uint8_t **output_data, 
+@@ -189,7 +189,7 @@ create_thumbnail (int src_width, int src
+   if (NULL == 
+       (scaler_ctx =
+        sws_getContext (src_width, src_height, src_pixfmt,
+-		       dst_width, dst_height, PIX_FMT_RGB24, 
++		       dst_width, dst_height, AV_PIX_FMT_RGB24, 
+ 		       SWS_BILINEAR, NULL, NULL, NULL)))
+     {
+ #if DEBUG
+@@ -199,7 +199,7 @@ create_thumbnail (int src_width, int src
+       return 0;
+     }
+ 
+-  if (NULL == (dst_frame = avcodec_alloc_frame ()))
++  if (NULL == (dst_frame = av_frame_alloc ()))
+     {
+ #if DEBUG
+       fprintf (stderr,
+@@ -209,18 +209,18 @@ create_thumbnail (int src_width, int src
+       return 0;
+     }
+   if (NULL == (dst_buffer =
+-	       av_malloc (avpicture_get_size (PIX_FMT_RGB24, dst_width, dst_height))))
++	       av_malloc (avpicture_get_size (AV_PIX_FMT_RGB24, dst_width, dst_height))))
+     {
+ #if DEBUG
+       fprintf (stderr,
+                "Failed to allocate the destination image buffer\n");
+ #endif
+-      av_free (dst_frame);
++      av_frame_free (&dst_frame);
+       sws_freeContext (scaler_ctx);
+       return 0;
+     }
+   avpicture_fill ((AVPicture *) dst_frame, dst_buffer,
+-                  PIX_FMT_RGB24, dst_width, dst_height);
++                  AV_PIX_FMT_RGB24, dst_width, dst_height);
+   sws_scale (scaler_ctx,
+              src_data, 
+              src_stride,
+@@ -255,7 +255,7 @@ create_thumbnail (int src_width, int src
+     }
+   encoder_codec_ctx->width = dst_width;
+   encoder_codec_ctx->height = dst_height;
+-  encoder_codec_ctx->pix_fmt = PIX_FMT_RGB24;
++  encoder_codec_ctx->pix_fmt = AV_PIX_FMT_RGB24;
+   opts = NULL;
+   if (avcodec_open2 (encoder_codec_ctx, encoder_codec, &opts) < 0)
+     {
+@@ -410,7 +410,7 @@ extract_image (ENUM_CODEC_ID image_codec
+       return;
+     }
+   av_dict_free (&opts);
+-  if (NULL == (frame = avcodec_alloc_frame ()))
++  if (NULL == (frame = av_frame_alloc ()))
+     {
+ #if DEBUG
+       fprintf (stderr,
+@@ -441,7 +441,7 @@ extract_image (ENUM_CODEC_ID image_codec
+       fprintf (stderr,
+ 	       "Failed to decode a complete frame\n");
+ #endif
+-      av_free (frame);
++      av_frame_free (&frame);
+       avcodec_close (codec_ctx);
+       av_free (codec_ctx);
+       return;
+@@ -563,7 +563,7 @@ extract_video (struct EXTRACTOR_ExtractC
+       return;
+     }
+ 
+-  if (NULL == (frame = avcodec_alloc_frame ()))
++  if (NULL == (frame = av_frame_alloc ()))
+     {
+ #if DEBUG
+       fprintf (stderr,
+@@ -616,7 +616,7 @@ extract_video (struct EXTRACTOR_ExtractC
+       fprintf (stderr,
+ 	       "Failed to decode a complete frame\n");
+ #endif
+-      av_free (frame);
++      av_frame_free (&frame);
+       avcodec_close (codec_ctx);
+       avformat_close_input (&format_ctx);
+       av_free (io_ctx);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f762d21
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ffmpeg_2.9.patch

--- End Message ---
--- Begin Message ---
Source: libextractor
Source-Version: 1:1.3-4

We believe that the bug you reported is fixed in the latest version of
libextractor, 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 803...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bertrand Marc <beberk...@gmail.com> (supplier of updated libextractor 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 26 Apr 2016 22:57:06 +0200
Source: libextractor
Binary: libextractor3 libextractor-dbg libextractor-dev extract
Architecture: source
Version: 1:1.3-4
Distribution: unstable
Urgency: medium
Maintainer: Bertrand Marc <beberk...@gmail.com>
Changed-By: Bertrand Marc <beberk...@gmail.com>
Description:
 extract    - displays meta-data from files of arbitrary type
 libextractor-dbg - extracts meta-data from files of arbitrary type (debug)
 libextractor-dev - extracts meta-data from files of arbitrary type 
(development)
 libextractor3 - extracts meta-data from files of arbitrary type (library)
Closes: 803835
Changes:
 libextractor (1:1.3-4) unstable; urgency=medium
 .
   * Update debian/patches/ffmpeg2.9.patch with a new commit taken from upstream
     svn, to make libextractor build with FFmpeg 2.9 (Closes: #803835).
   * Standards-version: 3.9.8.
   * debian/control: use secure URI for the Vcs-* fields.
Checksums-Sha1:
 9f8ed907fa091baed4664582d3b3c01f9b4ec396 2504 libextractor_1.3-4.dsc
 fd3a66c0cccef90ea7d226f880b27c125fef8bc8 15228 libextractor_1.3-4.debian.tar.xz
Checksums-Sha256:
 74f1e9b9819eba359377087553ca7a97bbfb2f159c7bc6d00bb0aa9d5ce67e95 2504 
libextractor_1.3-4.dsc
 eb564372ddb77aa69bdf8ee401c6a12df779725f9b58333eec228c107fe0595b 15228 
libextractor_1.3-4.debian.tar.xz
Files:
 0aa9906e284b37993c64c7de51553c30 2504 libs optional libextractor_1.3-4.dsc
 f4ff7508a12b79616ec2f64471c33106 15228 libs optional 
libextractor_1.3-4.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJXH98OAAoJEGny/FFupxmT+1QQAJIOaqvDKeuJTgv1KH9dMur7
gLnhlfMKXRCcsv33WFjkQIyIgNHX6FR9G2DTe9cRDfb2/c2lCtT6j+SfjoxsMYho
H18NyNYu5lp9WxfuGIZu+BWdnFRnRapPScJ4bGUSd8XJe8s+UM5hfgidXXkxebdG
6kt74PgDb2t780Jp4MhyUs97n1kTFFdR2vZwQrTRcaxZsLafayOl50nA3dORbJnE
/SEsftJN52ZSV/ztA9jWzVBsiCBRP3/rRNW748RLD+b/ft1mBs1tqxCgL9ouLOC5
+Fc/V/sqWGMY+v58WgKW7Q36Jj+BSNIT9K7zKWnGmva6EMOwMeb5ihG98ylo8z6e
gUanKissPTRwuEl/a8yD7ks2P4C+a0Q60cM0o2gTFrqiJQIU6UxLTEwvk1ynCTTb
DFFv14LjMzEe8X+kqgbJ9HojdhPhqGwd+gYvfvzFF2pjDREOiLe/5qqgd+sdF+k+
ZZ0gWL+0SIHo2/UlhvtWKiv2x7cLmzghdshLYuAaNsZlMEAEBSfMgP4NNQyx0LF2
f9iXV9xocwk4Uz3H7RvBFv3rx6fsc5O3pIkGMaDchP3K5tId9k7TDNnaYVja2XMQ
EvqkfrCmiaPg+ZdRrQfVWDHSeXJUJdZYKViotBwFOOIDyL4TAwUazGgY339zaflO
fFZnYn2i8imTjJfrCY49
=3c/A
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to