]> git.pld-linux.org Git - packages/k3b.git/commitdiff
- fix build with ffmpeg2 auto/th/k3b-2.0.2-7
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 29 Aug 2013 19:20:17 +0000 (21:20 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 29 Aug 2013 19:20:17 +0000 (21:20 +0200)
- rel 7

ffmpeg2.patch [new file with mode: 0644]
k3b.spec

diff --git a/ffmpeg2.patch b/ffmpeg2.patch
new file mode 100644 (file)
index 0000000..81115e9
--- /dev/null
@@ -0,0 +1,24 @@
+--- k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.h~       2011-01-15 21:47:29.000000000 +0100
++++ k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.h        2013-08-29 21:14:40.621518962 +0200
+@@ -18,7 +18,9 @@
+ #include "k3bmsf.h"
+-
++#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
++#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000
++#endif
+ /**
+  * Create with K3bFFMpegWrapper::open
+--- k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp~     2013-08-29 21:10:02.754685572 +0200
++++ k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp      2013-08-29 21:15:11.658576297 +0200
+@@ -129,7 +129,7 @@
+     // 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, NULL ) < 0 ) {
+         kDebug() << "(K3bFFMpegDecoderFactory) could not open codec.";
+         return false;
+     }
index 4c529ddfbe229c8ea2dcb4bf9aee7791c4d929a4..bb63cadb1b174f9927ece5e514ff7c8e7f08a337 100644 (file)
--- a/k3b.spec
+++ b/k3b.spec
@@ -14,7 +14,7 @@ Summary(hu.UTF-8):    CD Kreator
 Summary(pl.UTF-8):     Kreator CD
 Name:          k3b
 Version:       2.0.2
-Release:       6
+Release:       7
 Epoch:         1
 License:       GPL v2+
 Group:         X11/Libraries
@@ -22,6 +22,7 @@ Source0:      http://downloads.sourceforge.net/k3b/%{name}-%{version}.tar.bz2
 # Source0-md5: c86113af31a2032e57fd2f302b5f637a
 Patch0:                k3b-2.0.2-ffmpeg.patch
 Patch1:                k3b-2.0.2-libavformat54.patch
+Patch2:                ffmpeg2.patch
 URL:           http://k3b.plainblack.com/
 BuildRequires: Qt3Support-devel >= %{qtver}
 BuildRequires: QtNetwork-devel >= %{qtver}
@@ -143,6 +144,7 @@ Pliki nagłówkowe biblioteki libk3bcore.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 install -d build
This page took 0.086292 seconds and 4 git commands to generate.