Your message dated Sat, 08 Dec 2012 06:47:33 +0000
with message-id <[email protected]>
and subject line Bug#692867: fixed in avifile 1:0.7.48~20090503.ds-12x1
has caused the Debian Bug report #692867,
regarding FTBFS with libav 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.)


-- 
692867: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692867
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: avifile
Version: 1:0.7.48~20090503.ds-12
Severity: important
Tags: patch

hi,

avifile currently FTBFS with libav that is currently in
experimental. The attached patch should fix that. Please consider
applying it to the package and discuss this with upstream.

Cheers,
Reinhard

-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise-proposed'), (500, 'precise')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-32-generic (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: avifile-0.7.48~20090503.ds/configure.in
===================================================================
--- avifile-0.7.48~20090503.ds.orig/configure.in	2012-11-06 18:01:33.000000000 +0000
+++ avifile-0.7.48~20090503.ds/configure.in	2012-11-09 21:48:12.515760229 +0000
@@ -825,7 +825,7 @@
 AM_PATH_FFMPEG
 
 tmp_LIBS="$LIBS"
-AC_CHECK_LIB([avcodec], [avcodec_init], [],
+AC_CHECK_LIB([avcodec], [avcodec_register_all], [],
   [AC_MSG_ERROR([libavcodec is required to build this package.])])
 AC_CHECK_FUNCS([avcodec_decode_audio3 avcodec_decode_video2])
 LIBS="$tmp_LIBS"
Index: avifile-0.7.48~20090503.ds/lib/codeckeeper.cpp
===================================================================
--- avifile-0.7.48~20090503.ds.orig/lib/codeckeeper.cpp	2009-04-24 23:42:12.000000000 +0000
+++ avifile-0.7.48~20090503.ds/lib/codeckeeper.cpp	2012-11-09 21:49:37.357421496 +0000
@@ -294,7 +294,6 @@
     audio_codecs.clear();
 
     // FFMPEG initialization
-    avcodec_init();
     avcodec_register_all();
 
     uncompressed_FillPlugins(video_codecs);
Index: avifile-0.7.48~20090503.ds/lib/aviread/FFReadHandler.cpp
===================================================================
--- avifile-0.7.48~20090503.ds.orig/lib/aviread/FFReadHandler.cpp	2012-11-09 21:54:08.689656695 +0000
+++ avifile-0.7.48~20090503.ds/lib/aviread/FFReadHandler.cpp	2012-11-09 22:02:30.107834443 +0000
@@ -68,21 +68,19 @@
 
 int FFReadHandler::Init(const char* url)
 {
-    AVFormatParameters avfp;
     AVInputFormat* fmt = 0;
 
     // av_find_input_format(url);
     //printf("find input format  %p   %s\n", fmt, b);
-    memset(&avfp, 0, sizeof(avfp));
-    int r = av_open_input_file(&m_pContext, url,
-			       fmt, 64000, &avfp);
+    int r = avformat_open_input(&m_pContext, url,
+				fmt, NULL);
     if (r < 0)
     {
 	AVM_WRITE("FF reader", "Open Input failed %d\n", r);
 	return -1;
     }
 
-    if (av_find_stream_info(m_pContext) < 0)
+    if (avformat_find_stream_info(m_pContext, NULL) < 0)
 	return -1;
 
     AVM_WRITE("FF reader", "Format:'%s' Stream(s):%d\n", m_pContext->iformat->long_name, m_pContext->nb_streams);
@@ -202,7 +200,7 @@
     if (av_read_frame(m_pContext, &pkt) < 0)
     {
         p->Release();
-	if (url_ferror(m_pContext->pb))
+	if (m_pContext->pb && m_pContext->pb->error)
 	    AVM_WRITE("FF reader", "error seen\n");
 
 	//if (!url_feof(m_pContext->pb))
Index: avifile-0.7.48~20090503.ds/plugins/libffmpeg/FFAudioDecoder.cpp
===================================================================
--- avifile-0.7.48~20090503.ds.orig/plugins/libffmpeg/FFAudioDecoder.cpp	2012-11-06 18:01:33.000000000 +0000
+++ avifile-0.7.48~20090503.ds/plugins/libffmpeg/FFAudioDecoder.cpp	2012-11-09 22:07:56.570835067 +0000
@@ -25,7 +25,7 @@
 {
     if (!m_pAvContext)
     {
-	if (!(m_pAvContext = avcodec_alloc_context2(m_pAvCodec->type)))
+	if (!(m_pAvContext = avcodec_alloc_context3(m_pAvCodec)))
 	    return -1;
 
 	m_pAvContext->channels = m_pFormat->nChannels;
@@ -46,7 +46,7 @@
 	    m_pAvContext->extradata_size = m_pFormat->cbSize - skip;
 	}
 
-	if (avcodec_open(m_pAvContext, m_pAvCodec) < 0)
+	if (avcodec_open2(m_pAvContext, m_pAvCodec, NULL) < 0)
 	{
 	    AVM_WRITE("FFAudioDecoder", "WARNING: can't open avcodec\n");
 	    free(m_pAvContext);
Index: avifile-0.7.48~20090503.ds/plugins/libffmpeg/FFVideoDecoder.cpp
===================================================================
--- avifile-0.7.48~20090503.ds.orig/plugins/libffmpeg/FFVideoDecoder.cpp	2012-11-06 18:01:33.000000000 +0000
+++ avifile-0.7.48~20090503.ds/plugins/libffmpeg/FFVideoDecoder.cpp	2012-11-09 22:34:15.311166461 +0000
@@ -117,7 +117,6 @@
     pic->type = FF_BUFFER_TYPE_USER;
     pImage->m_iType = pic->pict_type;
 
-    pic->age = (pImage->GetAge() != pImage->MAX_AGE) ? pic->coded_picture_number - pImage->GetAge() : (1 << 30);
     if (pic->reference)
 	pImage->Age(pic->coded_picture_number);
     else
@@ -125,7 +124,7 @@
 
     Debug printf("FF: <<<< GetBuffer %p  %s %dx%d %p:%p:%p s:%f f:%d r:%d  age:%d\n", pImage, ftypes[pic->pict_type],
 		 avctx->width, avctx->height, pImage->Data(0), pImage->Data(2), pImage->Data(1),
-		 (double)pImage->m_lTimestamp / 1000000., avctx->pix_fmt, pic->reference, pic->age);
+		 (double)pImage->m_lTimestamp / 1000000., avctx->pix_fmt, pic->reference);
     return 0;
 }
 
@@ -162,7 +161,9 @@
     //printf("FFMPEG space %p \n", m_pAvContext); m_Dest.Print(); pImage->GetFmt()->Print();
     if (!m_pAvContext)
     {
-	if (!(m_pAvContext = avcodec_alloc_context2(m_pAvCodec->type)))
+	AVDictionary *dict = NULL;
+	
+	if (!(m_pAvContext = avcodec_alloc_context3(m_pAvCodec)))
             return -1;
 	// for autodetection errors
 	m_pAvContext->codec_tag = m_pFormat->biCompression;
@@ -175,7 +176,7 @@
 	    m_pAvContext->extradata_size = int(m_pFormat->biSize - sizeof(BITMAPINFOHEADER));
 	    m_pAvContext->extradata = (uint8_t*)m_pFormat + sizeof(BITMAPINFOHEADER);
 	    if (m_pAvContext->extradata_size > 40)
-		m_pAvContext->flags |= CODEC_FLAG_EXTERN_HUFF; // somewhat useless
+		av_dict_set(&dict, "extern_huff", "1", 0);
 	}
 
 	m_uiBuffers = (pImage && pImage->GetAllocator()) ? pImage->GetAllocator()->GetImages() : 0;
@@ -229,7 +230,7 @@
 	    m_pAvContext->flags |= CODEC_FLAG_TRUNCATED;
 #endif
 
-#if 1
+#if 0
 	m_pAvContext->error_recognition = FF_ER_COMPLIANT;
 	m_pAvContext->error_concealment = FF_EC_GUESS_MVS;
 	m_pAvContext->workaround_bugs = FF_BUG_AUTODETECT;
@@ -281,12 +282,13 @@
 	 m_pAvContext->workaround_bugs |= p->flag;
 	 }
 	 */
-	if (avcodec_open(m_pAvContext, m_pAvCodec) < 0)
+	if (avcodec_open2(m_pAvContext, m_pAvCodec, &dict) < 0)
 	{
 	    AVM_WRITE(m_Info.GetPrivateName(), "WARNING: FFVideoDecoder::DecodeFrame() can't open avcodec\n");
 	    Stop();
 	    return -1;
 	}
+	av_dict_free(&dict);
     }
 
     // try using draw_horiz_band if DR1 is unsupported
Index: avifile-0.7.48~20090503.ds/plugins/libffmpeg/Makefile.am
===================================================================
--- avifile-0.7.48~20090503.ds.orig/plugins/libffmpeg/Makefile.am	2012-11-06 18:01:33.000000000 +0000
+++ avifile-0.7.48~20090503.ds/plugins/libffmpeg/Makefile.am	2012-11-09 22:36:37.327251649 +0000
@@ -13,7 +13,7 @@
  libffmpeg.cpp
 
 FFMPEG_CFLAGS = -I$(top_srcdir)/ffmpeg
-ffmpeg_la_LIBADD = ../../lib/libaviplay.la -lavcodec -lavformat
+ffmpeg_la_LIBADD = ../../lib/libaviplay.la -lavcodec -lavformat -lavutil
 ffmpeg_la_LDFLAGS = -module -avoid-version
 
 AM_CPPFLAGS = $(LTNOPIC) $(INSTRUMENT) $(FFMPEG_CFLAGS)

--- End Message ---
--- Begin Message ---
Source: avifile
Source-Version: 1:0.7.48~20090503.ds-12x1

We believe that the bug you reported is fixed in the latest version of
avifile, 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.
Ying-Chun Liu (PaulLiu) <[email protected]> (supplier of updated avifile 
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: SHA512

Format: 1.8
Date: Sat, 08 Dec 2012 14:27:50 +0800
Source: avifile
Binary: libavifile-0.7c2 libavifile-0.7-dev libavifile-0.7-bin 
libavifile-0.7-common
Architecture: source i386 all
Version: 1:0.7.48~20090503.ds-12x1
Distribution: experimental
Urgency: low
Maintainer: Ying-Chun Liu (PaulLiu) <[email protected]>
Changed-By: Ying-Chun Liu (PaulLiu) <[email protected]>
Description: 
 libavifile-0.7-bin - toolkit for libavifile
 libavifile-0.7-common - toolkit for libavifile
 libavifile-0.7-dev - development header files for libavifile
 libavifile-0.7c2 - shared libraries for AVI read/writing
Closes: 692867
Changes: 
 avifile (1:0.7.48~20090503.ds-12x1) experimental; urgency=low
 .
   * Port to libav9. (Closes: #692867)
     - debian/patches/fix-ftbfs-libav9.patch
   * Enable hardening.
   * Use dh-exec to handle Multi-Arch install.
Checksums-Sha1: 
 da151c539c5f42984e76265f9dec8bf5f41c9139 2197 
avifile_0.7.48~20090503.ds-12x1.dsc
 035d52e23ea75eed65d69ed91935f5ff4dbb2f0c 28633 
avifile_0.7.48~20090503.ds-12x1.debian.tar.gz
 41c9af178475f4089dd2ee8ddff2825298a7e95f 451046 
libavifile-0.7c2_0.7.48~20090503.ds-12x1_i386.deb
 ff746edb1a966b9c6c3b6de056b5a5fbb9718d5e 94270 
libavifile-0.7-dev_0.7.48~20090503.ds-12x1_i386.deb
 ac68b0f526ebfd9ac2df1c28ca98ade292f61fe2 63910 
libavifile-0.7-bin_0.7.48~20090503.ds-12x1_i386.deb
 79f431d74133c385ab94ff12e45502687bc8c49c 90148 
libavifile-0.7-common_0.7.48~20090503.ds-12x1_all.deb
Checksums-Sha256: 
 a6e09d57b55c864b28923e081eebdc33795127920a96976fafb4638d0c0bafee 2197 
avifile_0.7.48~20090503.ds-12x1.dsc
 7fbb1d83f9dac89e984a05c94c24073f1ed522afb7124a8cd8e36b4ac9046822 28633 
avifile_0.7.48~20090503.ds-12x1.debian.tar.gz
 560c2fd4da47fb58d1703b42f1927eb682617d8463f79baa11e0219140eb1d63 451046 
libavifile-0.7c2_0.7.48~20090503.ds-12x1_i386.deb
 f41692560eb9997101e6e7768a833507cb57d06d5dfb2a63415b787714a40501 94270 
libavifile-0.7-dev_0.7.48~20090503.ds-12x1_i386.deb
 7f9ad8b24d49b4946a1d107286250b2d6f2f5fe031364ffb090a42124b9b2e33 63910 
libavifile-0.7-bin_0.7.48~20090503.ds-12x1_i386.deb
 ee4d2cac82abe58769201ecd20783ceb83d722929cbb8a93ff053dd936a6b780 90148 
libavifile-0.7-common_0.7.48~20090503.ds-12x1_all.deb
Files: 
 14e0af221dbb8b3e41784c0733d45f06 2197 libs optional 
avifile_0.7.48~20090503.ds-12x1.dsc
 96c10fa3b48bc30224a5efaed427e1ff 28633 libs optional 
avifile_0.7.48~20090503.ds-12x1.debian.tar.gz
 aabd03574345d4b3de7ed86bda2d3eb2 451046 libs optional 
libavifile-0.7c2_0.7.48~20090503.ds-12x1_i386.deb
 aa9d85bd102d3ecd7076a7d48d96565d 94270 libdevel optional 
libavifile-0.7-dev_0.7.48~20090503.ds-12x1_i386.deb
 ae2ab1e00855303c12d4db93253c2e05 63910 misc optional 
libavifile-0.7-bin_0.7.48~20090503.ds-12x1_i386.deb
 ccf22b9c5ca463b11b7d2a74591d7d58 90148 misc optional 
libavifile-0.7-common_0.7.48~20090503.ds-12x1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJQwuCsAAoJEPgLgUbQQog2fwQQAJq8/EmBybgOHMGY6StxANSB
mXNMywvdHRIReLNG+dGBUiSLCMvFL9N4/CTgbjlODMbHSIpMZQxInBevehIRssSZ
2g7KVwPUpqXwduNafrnLETK8Z0xyL6B8PJ9FNPEz0U9vQS6QXrwCiqxWID3LB4GN
9qPH+dBb8RRCcYhnOYM3gOTpGWlpy2lhzHSKkE7ss6NscLd8CG9zB1elRV79a0wz
kAzcjcak3HWtj9GhssSLUQ6KIRbmXVPKHBk8qlpYMPK/mbvqY3xAhFEAAHaRYgLh
xRBaQ5T6d0n3DI8ahN0m0AQzUQzUwUnAvuaPtpKHdRkFQlVB2EjhPtH6P7dnuURW
RBMegVgQ1i3RxMgPw6LGZrj+neJKkAoXku31XiW1EnqYQfYViiAi3AwjH8wRP6wR
DKRpHVfl3aobQne50QAppV7sdK/D9ZqlJ9mrTUQRxRXnkIkFvZTKs3t8wuMp+YbK
5/tpGhZG30Pfbr8zPNjbtlndIw6pzrHw9fYIYKv6kekSgCnJtX0QhlBkGCUmGXRk
RHsEjL2qIe54X0A/SgahQyTiwo2OiIAVNCN4k1JnpwpVJBp/ZMLXcgAwq2Oj6Zgv
jIH6j5+wzibzA+xI5ZJbqyJHI2bogcKaMUtrcQs/1qrjUP2Ujr2rPyVmJISxh0ug
8n4VyFm6JUcxWivW050Q
=gyro
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to