rev 18925 - in kde-extras/k3b/trunk/debian: . patches
Fathi Boudra
fabo at alioth.debian.org
Mon Sep 12 17:15:28 UTC 2011
Author: fabo
Date: 2011-09-12 17:15:28 +0000 (Mon, 12 Sep 2011)
New Revision: 18925
Added:
kde-extras/k3b/trunk/debian/patches/Fixed_compilation_with_new_FFMPEG.patch
Modified:
kde-extras/k3b/trunk/debian/changelog
kde-extras/k3b/trunk/debian/patches/series
Log:
Add Fixed_compilation_with_new_FFMPEG.patch. (Closes: #638546)
Modified: kde-extras/k3b/trunk/debian/changelog
===================================================================
--- kde-extras/k3b/trunk/debian/changelog 2011-09-12 17:11:41 UTC (rev 18924)
+++ kde-extras/k3b/trunk/debian/changelog 2011-09-12 17:15:28 UTC (rev 18925)
@@ -1,3 +1,9 @@
+k3b (2.0.2-3) UNRELEASED; urgency=low
+
+ * Add Fixed_compilation_with_new_FFMPEG.patch. (Closes: #638546)
+
+ -- Fathi Boudra <fabo at debian.org> Mon, 12 Sep 2011 20:11:56 +0300
+
k3b (2.0.2-2) unstable; urgency=low
* Add libqtwebkit-dev build dependency. (Closes: #618170)
Added: kde-extras/k3b/trunk/debian/patches/Fixed_compilation_with_new_FFMPEG.patch
===================================================================
--- kde-extras/k3b/trunk/debian/patches/Fixed_compilation_with_new_FFMPEG.patch (rev 0)
+++ kde-extras/k3b/trunk/debian/patches/Fixed_compilation_with_new_FFMPEG.patch 2011-09-12 17:15:28 UTC (rev 18925)
@@ -0,0 +1,96 @@
+commit 61ca30beb978f68e72257408777c6433f33129bd
+Author: Michal Malek <michalm at jabster.pl>
+Date: Sun Aug 28 20:18:53 2011 +0200
+
+ Fixed compilation with new FFMPEG
+
+ BUG: 274817
+ FIXED-IN: 2.0.3
+
+diff --git a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp b/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+index 0ad59fc..0c5f366 100644
+--- a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
++++ b/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+@@ -109,7 +109,13 @@ bool K3bFFMpegFile::open()
+ #else
+ ::AVCodecContext* codecContext = d->formatContext->streams[0]->codec;
+ #endif
+- if( codecContext->codec_type != CODEC_TYPE_AUDIO ) {
++ if( codecContext->codec_type !=
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 64, 0)
++ AVMEDIA_TYPE_AUDIO)
++#else
++ CODEC_TYPE_AUDIO)
++#endif
++ {
+ kDebug() << "(K3bFFMpegFile) not a simple audio stream: " << m_filename;
+ return false;
+ }
+@@ -225,8 +231,11 @@ QString K3bFFMpegFile::typeComment() const
+ QString K3bFFMpegFile::title() const
+ {
+ // FIXME: is this UTF8 or something??
+- if( d->formatContext->title[0] != '\0' )
+- return QString::fromLocal8Bit( d->formatContext->title );
++ AVDictionaryEntry *ade = av_dict_get( d->formatContext->metadata, "TITLE", NULL, 0 );
++ if( ade == NULL )
++ return QString();
++ if( ade->value != '\0' )
++ return QString::fromLocal8Bit( ade->value );
+ else
+ return QString();
+ }
+@@ -235,8 +244,11 @@ QString K3bFFMpegFile::title() const
+ QString K3bFFMpegFile::author() const
+ {
+ // FIXME: is this UTF8 or something??
+- if( d->formatContext->author[0] != '\0' )
+- return QString::fromLocal8Bit( d->formatContext->author );
++ AVDictionaryEntry *ade = av_dict_get( d->formatContext->metadata, "ARTIST", NULL, 0 );
++ if( ade == NULL )
++ return QString();
++ if( ade->value != '\0' )
++ return QString::fromLocal8Bit( ade->value );
+ else
+ return QString();
+ }
+@@ -245,8 +257,11 @@ QString K3bFFMpegFile::author() const
+ QString K3bFFMpegFile::comment() const
+ {
+ // FIXME: is this UTF8 or something??
+- if( d->formatContext->comment[0] != '\0' )
+- return QString::fromLocal8Bit( d->formatContext->comment );
++ AVDictionaryEntry *ade = av_dict_get( d->formatContext->metadata, "COMMENT", NULL, 0 );
++ if( ade == NULL )
++ return QString();
++ if( ade->value != '\0' )
++ return QString::fromLocal8Bit( ade->value );
+ else
+ return QString();
+ }
+@@ -309,8 +324,13 @@ int K3bFFMpegFile::fillOutputBuffer()
+ #if LIBAVCODEC_VERSION_MAJOR < 52
+ int len = ::avcodec_decode_audio(
+ #else
++ #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 64, 0)
++ int len = ::avcodec_decode_audio3(
++ #else
+ int len = ::avcodec_decode_audio2(
++ #endif
+ #endif
++
+ #ifdef FFMPEG_BUILD_PRE_4629
+ &d->formatContext->streams[0]->codec,
+ #else
+@@ -318,7 +338,11 @@ int K3bFFMpegFile::fillOutputBuffer()
+ #endif
+ (short*)d->alignedOutputBuffer,
+ &d->outputBufferSize,
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 64, 0)
++ &d->packet );
++#else
+ d->packetData, d->packetSize );
++#endif
+
+ if( d->packetSize <= 0 || len < 0 )
+ ::av_free_packet( &d->packet );
Modified: kde-extras/k3b/trunk/debian/patches/series
===================================================================
--- kde-extras/k3b/trunk/debian/patches/series 2011-09-12 17:11:41 UTC (rev 18924)
+++ kde-extras/k3b/trunk/debian/patches/series 2011-09-12 17:15:28 UTC (rev 18925)
@@ -1,3 +1,4 @@
+Fixed_compilation_with_new_FFMPEG.patch
101_rename_normalize.diff
104_dont_require_suid_cdrecord_or_cdrdao.diff
110_disable_no_problems_found_popup.diff
More information about the pkg-kde-commits
mailing list