Your message dated Sat, 01 Jun 2013 19:32:54 +0000
with message-id <[email protected]>
and subject line Bug#692867: fixed in avifile 1:0.7.48~20090503.ds-14
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-14

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: Sun, 02 Jun 2013 03:13:08 +0800
Source: avifile
Binary: libavifile-0.7-common libavifile-0.7c2 libavifile-0.7-dev 
libavifile-0.7-bin
Architecture: source all i386
Version: 1:0.7.48~20090503.ds-14
Distribution: unstable
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-14) unstable; 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: 
 9c6c533e68d04ba7eb9d054d7f96993342c701da 2189 avifile_0.7.48~20090503.ds-14.dsc
 c2a65ad6df2990ac0986d9e05f9d1f4d71553652 28957 
avifile_0.7.48~20090503.ds-14.debian.tar.gz
 684e20d9219863a61202e0a102448a96f3ed592e 91410 
libavifile-0.7-common_0.7.48~20090503.ds-14_all.deb
 9fc59cdc9324ffc14b5a68cb26bbd9846c331167 409158 
libavifile-0.7c2_0.7.48~20090503.ds-14_i386.deb
 4592f1a7b022c29140222e881d3be0d71d302037 53920 
libavifile-0.7-dev_0.7.48~20090503.ds-14_i386.deb
 e11058b2fe28e73fc26a0edf21ad8452aecbfc2e 24544 
libavifile-0.7-bin_0.7.48~20090503.ds-14_i386.deb
Checksums-Sha256: 
 d4ea92367822fed462857fdb1fc7fae4807677fa7525bcd8c3caa6d870b9758f 2189 
avifile_0.7.48~20090503.ds-14.dsc
 305ff20ee93809680f73cf2fd428b2f7a6feb0c4afa63ffcf5072e75ae47210e 28957 
avifile_0.7.48~20090503.ds-14.debian.tar.gz
 0ef4e9c010f3a5b6827e971cf0e55c3975e3a5a77b926834efe9f399746c8434 91410 
libavifile-0.7-common_0.7.48~20090503.ds-14_all.deb
 75961183245cc49ed504c9ac76a91300d48517f20e188e62116a9f2a819b158d 409158 
libavifile-0.7c2_0.7.48~20090503.ds-14_i386.deb
 5edde76ed760d673f365b566d577776656dcbe530ad907fecc9099c65fe60f3a 53920 
libavifile-0.7-dev_0.7.48~20090503.ds-14_i386.deb
 c0936f80a4ec4ebcf8f2789b9d70981771e293e085f1b2656b9e2dc13bb61c43 24544 
libavifile-0.7-bin_0.7.48~20090503.ds-14_i386.deb
Files: 
 cb7209197ec4267a8dc5ecc0d6d2911e 2189 libs optional 
avifile_0.7.48~20090503.ds-14.dsc
 e06a3bf16813c064b1b3d4005ec56e61 28957 libs optional 
avifile_0.7.48~20090503.ds-14.debian.tar.gz
 6f07b9b69290bdbc5996ea9ac2bf7b32 91410 misc optional 
libavifile-0.7-common_0.7.48~20090503.ds-14_all.deb
 7bbd48b2917600b943e805c22ac34e7c 409158 libs optional 
libavifile-0.7c2_0.7.48~20090503.ds-14_i386.deb
 beba6428be14a97e34721aafea15c21d 53920 libdevel optional 
libavifile-0.7-dev_0.7.48~20090503.ds-14_i386.deb
 15a94db3600f1c9aa1b431d2da8e468a 24544 misc optional 
libavifile-0.7-bin_0.7.48~20090503.ds-14_i386.deb

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

iQIcBAEBCgAGBQJRqkoLAAoJEPgLgUbQQog2OJAP/A7ggWRHNtIhrRvJ4ut5HEpG
lydolDU5ANacK4VDroJJLvYLIGTGXCI8Lfjqhgi4XVgNIz9tET8l1kozAntk0TWt
hzHscqxss1wMiF+oSmDblKN45crXkctfLM3bP6+AL4wvysjE1althNdqMDwEPzxD
UvZwSo64YsBJ0eYSwnnmj7hYY6beVN6L8pxfxg28LuKvhk0HaqB4E6wSZJg/XyQw
TEzctfkZUWk3m1iQ+0HFudS42thSLLOyDBAx5FYVPPVTfkdtB13XfnYLGCq3RgWZ
e3Qwwyx9PqSXG6SExNJujL8AL02Oxf4fRBp64E++lAz9ILTUrebLvmeT8nQlOvFH
IKD/yU2cKBpT3bFozieF90mcAhmI59KSiKBgZLR6t+gyxqujxLZx+9yeyB2VCJA9
jBuYXiQSZqXQrxJhzTutpmxumtoqA/HgQSe6ahiWRI24X6vDurTXhpzA/Js+XEmI
3oy+MoDnh2AOdZke0dEvsdBgOUcqQ196qU7J4MUu9zlRC8FQ8Zc8oukHRSt4kIMz
0NTuB4J3P3yCP/GtvV/UToeo3q9cLfmnRCRs7Sm3Llzz3TlFRyRP4eAPksEwOsnv
l3ZK76m7mlFDtDEEeoA4aXxyDZZoDcGYoaJSAU1e5JWzuMM9cdg6vI8WM93ALgBN
+ApMRVNssPMdTQjcwOkk
=sVN4
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to