Your message dated Wed, 20 Jan 2016 19:34:16 +0000
with message-id <[email protected]>
and subject line Bug#803815: fixed in fuse-emulator-utils 1.1.1-5
has caused the Debian Bug report #803815,
regarding fuse-emulator-utils: 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 [email protected]
immediately.)


-- 
803815: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803815
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fuse-emulator-utils
Version: 1.1.1-4
Severity: important
Tags: patch
User: [email protected]
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..a986a18
--- /dev/null
+++ b/debian/patches/ffmpeg_2.9.patch
@@ -0,0 +1,126 @@
+Description: Replace deprecated FFmpeg API
+Author: Andreas Cadhalpun <[email protected]>
+Last-Update: <2015-11-02>
+
+--- fuse-emulator-utils-1.1.1.orig/fmfconv_ff.c
++++ fuse-emulator-utils-1.1.1/fmfconv_ff.c
+@@ -68,7 +68,7 @@
+ #include "fmfconv.h"
+ 
+ #define VRATE_MULT 2
+-static int sws_flags = SWS_BICUBIC | SWS_CPU_CAPS_3DNOW | SWS_CPU_CAPS_MMX2;
++static int sws_flags = SWS_BICUBIC;
+ 
+ int ffmpeg_arate = 0;		/* audio bitrate */
+ int ffmpeg_vrate = 0;		/* video bitrate */
+@@ -105,9 +105,9 @@ static int16_t **ffmpeg_sound;
+ static uint8_t *video_outbuf;
+ static int video_outbuf_size;
+ 
+-static AVFrame *alloc_picture( enum PixelFormat pix_fmt, int width, int height, void *fmf_pict );
++static AVFrame *alloc_picture( enum AVPixelFormat pix_fmt, int width, int height, void *fmf_pict );
+ 
+-static enum PixelFormat out_pix_fmt = PIX_FMT_NONE;
++static enum AVPixelFormat out_pix_fmt = AV_PIX_FMT_NONE;
+ /* FFMPEG utility functions */
+ 
+ static int res_rte = -1;
+@@ -201,7 +201,7 @@ ffmpeg_rescale_video( void )
+     if( !ff_tmp_picture ) {
+       printe( "FFMPEG: Could not allocate temporary picture\n" );
+       avcodec_close( video_st->codec );
+-      av_free( ff_picture );
++      av_frame_free( &ff_picture );
+       return 1;
+     }
+     res_w = frm_w;
+@@ -209,14 +209,14 @@ ffmpeg_rescale_video( void )
+   }
+   if( video_resize_ctx == NULL ) {
+     video_resize_ctx = sws_getContext( res_w, res_h,
+-                                      PIX_FMT_YUV444P,
++                                      AV_PIX_FMT_YUV444P,
+                                       out_w, out_h,
+                                       out_pix_fmt,
+                                       sws_flags, NULL, NULL, NULL );
+     if( !video_resize_ctx ) {
+       printe( "Cannot initialize the conversion context\n" );
+       avcodec_close( video_st->codec );
+-      av_free( ff_picture );
++      av_frame_free( &ff_picture );
+       return 1;
+     }
+     ffmpeg_pict = ff_tmp_picture;
+@@ -224,7 +224,7 @@ ffmpeg_rescale_video( void )
+   sws_scale( video_resize_ctx, 
+ 		(const uint8_t * const*)ff_picture->data, ff_picture->linesize,
+ 		0, res_h, ff_tmp_picture->data, ff_tmp_picture->linesize );
+-  printi( 3, "ffmpeg_rescale_frame(): resize %dx%d -> %dx%d pix format %d->%d\n", frm_w, frm_h, out_w, out_h, PIX_FMT_YUV444P, out_pix_fmt );
++  printi( 3, "ffmpeg_rescale_frame(): resize %dx%d -> %dx%d pix format %d->%d\n", frm_w, frm_h, out_w, out_h, AV_PIX_FMT_YUV444P, out_pix_fmt );
+   return 0;
+ }
+ 
+@@ -522,19 +522,19 @@ add_video_stream( enum AVCodecID codec_i
+ }
+ 
+ static AVFrame *
+-alloc_picture( enum PixelFormat pix_fmt, int width, int height, void *fmf_pict )
++alloc_picture( enum AVPixelFormat pix_fmt, int width, int height, void *fmf_pict )
+ {
+   AVFrame *picture;
+   uint8_t *picture_buf;
+   int size;
+ 
+-  picture = avcodec_alloc_frame();
++  picture = av_frame_alloc();
+   if( !picture ) return NULL;
+   if( !fmf_pict ) {
+     size = avpicture_get_size( pix_fmt, width, height );
+     picture_buf = av_malloc( size );
+     if( !picture_buf ) {
+-      av_free( picture );
++      av_frame_free( &picture );
+       return NULL;
+     }
+     avpicture_fill( (AVPicture *)picture, picture_buf,
+@@ -555,7 +555,7 @@ open_video( AVCodec *codec )
+   c = video_st->codec;
+ 
+   if( codec->pix_fmts == NULL )
+-     c->pix_fmt = PIX_FMT_YUV420P;
++     c->pix_fmt = AV_PIX_FMT_YUV420P;
+   else
+     c->pix_fmt = codec->pix_fmts[0];
+ 
+@@ -606,7 +606,7 @@ open_video( AVCodec *codec )
+   }
+ 
+   /* allocate the encoded raw picture */
+-  ff_picture = alloc_picture( PIX_FMT_YUV444P, frm_w, frm_h, pix_yuv[0] );
++  ff_picture = alloc_picture( AV_PIX_FMT_YUV444P, frm_w, frm_h, pix_yuv[0] );
+   ff_tmp_picture = NULL;
+ 
+   if( !ff_picture ) {
+@@ -673,11 +673,11 @@ close_video( void )
+     avcodec_close( video_st->codec );
+   if( ff_picture ) {
+     /* av_free( ff_picture->data[0] ); */
+-    av_free( ff_picture );
++    av_frame_free( ff_picture );
+   }
+   if( ff_tmp_picture ) {
+     av_free( ff_tmp_picture->data[0] );
+-    av_free( ff_tmp_picture );
++    av_frame_free( &ff_tmp_picture );
+   }
+   if( video_outbuf ) av_free( video_outbuf );
+ }
+@@ -872,7 +872,7 @@ out_write_ffmpeg( void )
+ 
+   if( !video_st ) return 0;
+ 
+-  if( ( out_w != frm_w || out_h != frm_h || out_pix_fmt != PIX_FMT_YUV444P ) && 
++  if( ( out_w != frm_w || out_h != frm_h || out_pix_fmt != AV_PIX_FMT_YUV444P ) && 
+ 	( err = ffmpeg_rescale_video() ) ) return err;
+   ffmpeg_add_frame_ffmpeg();
+   printi( 2, "out_write_ffmpeg(): add frame\n" );
diff --git a/debian/patches/series b/debian/patches/series
index f08164b..a314b65 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 libav10.patch
 fix-wav-sample-rate.patch
+ffmpeg_2.9.patch

--- End Message ---
--- Begin Message ---
Source: fuse-emulator-utils
Source-Version: 1.1.1-5

We believe that the bug you reported is fixed in the latest version of
fuse-emulator-utils, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alberto Garcia <[email protected]> (supplier of updated fuse-emulator-utils 
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 [email protected])


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

Format: 1.8
Date: Wed, 13 Jan 2016 15:17:47 +0200
Source: fuse-emulator-utils
Binary: fuse-emulator-utils
Architecture: source amd64
Version: 1.1.1-5
Distribution: unstable
Urgency: medium
Maintainer: Alberto Garcia <[email protected]>
Changed-By: Alberto Garcia <[email protected]>
Description:
 fuse-emulator-utils - The Free Unix Spectrum Emulator - Utilities
Closes: 803815
Changes:
 fuse-emulator-utils (1.1.1-5) unstable; urgency=medium
 .
   [ Andreas Cadhalpun ]
   * ffmpeg_2.9.patch:
     - Add support for FFmpeg 2.9 (Closes: #803815).
Checksums-Sha1:
 096411679c33516507efc79624b1765aa377fb86 1948 fuse-emulator-utils_1.1.1-5.dsc
 1330c5f9eefbef74e09a24d0c19236d4a2e37783 6808 
fuse-emulator-utils_1.1.1-5.debian.tar.xz
 4e1329efc59f8712b903ae28e4b769be5faaf648 341838 
fuse-emulator-utils-dbgsym_1.1.1-5_amd64.deb
 30fbff123ad152666367bd5635f17d019bda1943 105374 
fuse-emulator-utils_1.1.1-5_amd64.deb
Checksums-Sha256:
 04e4d19d9f7a59500a3413d978028fe8394ea34b2ae173a78f35706527d8d67c 1948 
fuse-emulator-utils_1.1.1-5.dsc
 e40ea21e5918715953d66ba684a5acfb448717aee4964bab7159215471af6254 6808 
fuse-emulator-utils_1.1.1-5.debian.tar.xz
 d88e2766134468fa52ae7404cbf9225c775901037f9b1e445b2d647e454d91de 341838 
fuse-emulator-utils-dbgsym_1.1.1-5_amd64.deb
 7d27aecd824b36886f963d6eed57e936b0ff086a2c3d4c17f002ddf395f90c9d 105374 
fuse-emulator-utils_1.1.1-5_amd64.deb
Files:
 90adb6548bf84760b350d018ebe1a38d 1948 otherosfs optional 
fuse-emulator-utils_1.1.1-5.dsc
 837174e747e93e2798834eabf474292c 6808 otherosfs optional 
fuse-emulator-utils_1.1.1-5.debian.tar.xz
 6ed7d73f0b2c6d5edbb4652e56989f92 341838 debug extra 
fuse-emulator-utils-dbgsym_1.1.1-5_amd64.deb
 4fa75463bcc46a238313e5445a7f5e47 105374 otherosfs optional 
fuse-emulator-utils_1.1.1-5_amd64.deb

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

iQIVAwUBVpZV/r4yGa8+1BNBAQgZSA//SJZ9F6PVXqHSrLakXSigs5dd9BtxUPat
zeIwKIUUFJFPrsVT0Qz5FwZdpE0LKAQXbnsXebvgknPvq9vsQmgMi3F1Xru3B6oy
vGqFP/JWy+mzsMROB+UrifsAlTfDFTx2wDAfctm/AybyK7rEqeGApXFUT1fO6lca
lKuk08Uzj70oWK7QxqXH9sEBiVHKQ3QmIcznnXHalDBYT/hnSH9HoSZ9GM4nSZtx
a7Ow8u2QM55GTbbz7UOhkT9qeFo3uGfdCyESgv2Q/jwkhKGIXWXZktWi8fxSIQmL
uxWe6kOCazqqqOHgVSgJwb6PD49cXP86rnP/1NsLWhHYwrNk8daYQcqagh/xsa8L
v71DAmT1zGOM532eINuManMmy8XD6miGBjSwlypQcs00uRLIuYDudkbLvdNwtuD7
ObiZagCkYfIv3HPKRtvyQZUS0GO4b5JN9yWk/u8nyGVyqjMVpvNpQblMYza9n+IF
iU6W49dK0s7QxmoUM++VA6zjJbIhgr1gjZU3EyRE+dHUDnADBlnnrEjpmW3Isrj2
3jWpxy7Ug2Nm9srLMNTOxr+pBuk2wggbdQAArhhm1nt6kJrsD+8MnvHkgyHOYubF
wVrpey7dP9Woov7KDZO3/YBI+UHBDIroMG305tini7QPMBeUyg3IhTPiXjbY7nTf
PssckrX4Wz0=
=CbN7
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to