Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2013 20:41:54 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r331189 - in head/sysutils/k3b-kde4: . files
Message-ID:  <201310212041.r9LKfsRW042861@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Mon Oct 21 20:41:54 2013
New Revision: 331189
URL: http://svnweb.freebsd.org/changeset/ports/331189

Log:
  sysutils/k3b-kde4: fix build with ffmpeg-2
  
  - Fix build with ffmpeg-2
  
  Approved by:	portmgr (bapt, implicit)

Added:
  head/sysutils/k3b-kde4/files/patch-ffmpeg2   (contents, props changed)
  head/sysutils/k3b-kde4/files/patch-libav9   (contents, props changed)
Modified:
  head/sysutils/k3b-kde4/Makefile

Modified: head/sysutils/k3b-kde4/Makefile
==============================================================================
--- head/sysutils/k3b-kde4/Makefile	Mon Oct 21 20:25:23 2013	(r331188)
+++ head/sysutils/k3b-kde4/Makefile	Mon Oct 21 20:41:54 2013	(r331189)
@@ -3,7 +3,7 @@
 
 PORTNAME=	k3b
 PORTVERSION=	2.0.2
-PORTREVISION=	12
+PORTREVISION=	13
 CATEGORIES=	sysutils multimedia kde
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
 

Added: head/sysutils/k3b-kde4/files/patch-ffmpeg2
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/k3b-kde4/files/patch-ffmpeg2	Mon Oct 21 20:41:54 2013	(r331189)
@@ -0,0 +1,19 @@
+https://bugs.gentoo.org/show_bug.cgi?id=476494
+
+A better patch using avcodec_decode_audio4 will be needed but for now this
+fixes the problem.
+
+Index: k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+===================================================================
+--- plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp.orig
++++ plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+@@ -37,6 +37,9 @@ extern "C" {
+ 
+ #include <klocale.h>
+ 
++#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
++#define AVCODEC_MAX_AUDIO_FRAME_SIZE (192000 * 4)
++#endif
+ 
+ #if LIBAVFORMAT_BUILD < 4629
+ #define FFMPEG_BUILD_PRE_4629

Added: head/sysutils/k3b-kde4/files/patch-libav9
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/k3b-kde4/files/patch-libav9	Mon Oct 21 20:41:54 2013	(r331189)
@@ -0,0 +1,22 @@
+Index: k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+===================================================================
+--- plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp.orig	2013-04-22 17:46:13.523959500 +0200
++++ plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp	2013-04-22 18:40:49.890007513 +0200
+@@ -95,7 +95,7 @@ bool K3bFFMpegFile::open()
+     }
+ 
+     // analyze the streams
+-    ::av_find_stream_info( d->formatContext );
++    ::avformat_find_stream_info( d->formatContext, 0 );
+ 
+     // we only handle files containing one audio stream
+     if( d->formatContext->nb_streams != 1 ) {
+@@ -129,7 +129,7 @@ bool K3bFFMpegFile::open()
+ 
+     // open the codec on our context
+     kDebug() << "(K3bFFMpegFile) found codec for " << m_filename;
+-    if( ::avcodec_open( codecContext, d->codec ) < 0 ) {
++    if( ::avcodec_open2( codecContext, d->codec, 0 ) < 0 ) {
+         kDebug() << "(K3bFFMpegDecoderFactory) could not open codec.";
+         return false;
+     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310212041.r9LKfsRW042861>