diff options
author | tnut <tnut at nutyx dot com> | 2012-01-08 12:15:45 +0100 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-01-08 12:15:45 +0100 |
commit | 3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch) | |
tree | 819b14ab0377fe2054fe59866669d904e9e0b4b5 /extra/k3b/k3b-2.0.2-ffmpeg0.8.patch | |
parent | c9972ec7f32bf9d37388e853fe9bf633e242d05a (diff) | |
download | nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2 nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip |
split de git pakxe et NuTyX-extra
Diffstat (limited to 'extra/k3b/k3b-2.0.2-ffmpeg0.8.patch')
-rw-r--r-- | extra/k3b/k3b-2.0.2-ffmpeg0.8.patch | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/extra/k3b/k3b-2.0.2-ffmpeg0.8.patch b/extra/k3b/k3b-2.0.2-ffmpeg0.8.patch deleted file mode 100644 index b87efde43..000000000 --- a/extra/k3b/k3b-2.0.2-ffmpeg0.8.patch +++ /dev/null @@ -1,81 +0,0 @@ ---- plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp.ffmpeg 2011-01-15 21:47:29.000000000 +0100 -+++ plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp 2011-06-24 16:53:55.000000000 +0200 -@@ -109,7 +109,7 @@ - #else - ::AVCodecContext* codecContext = d->formatContext->streams[0]->codec; - #endif -- if( codecContext->codec_type != CODEC_TYPE_AUDIO ) { -+ if( codecContext->codec_type != AVMEDIA_TYPE_AUDIO ) { - kDebug() << "(K3bFFMpegFile) not a simple audio stream: " << m_filename; - return false; - } -@@ -224,9 +224,11 @@ - - QString K3bFFMpegFile::title() const - { -+ AVMetadataTag *title; -+ title = av_metadata_get(d->formatContext->metadata, "title", NULL, 0); - // FIXME: is this UTF8 or something?? -- if( d->formatContext->title[0] != '\0' ) -- return QString::fromLocal8Bit( d->formatContext->title ); -+ if( title ) -+ return QString::fromLocal8Bit( title->value ); - else - return QString(); - } -@@ -234,9 +236,11 @@ - - QString K3bFFMpegFile::author() const - { -+ AVMetadataTag *author; -+ author = av_metadata_get(d->formatContext->metadata, "author", NULL, 0); - // FIXME: is this UTF8 or something?? -- if( d->formatContext->author[0] != '\0' ) -- return QString::fromLocal8Bit( d->formatContext->author ); -+ if( author ) -+ return QString::fromLocal8Bit( author->value ); - else - return QString(); - } -@@ -244,9 +248,11 @@ - - QString K3bFFMpegFile::comment() const - { -+ AVMetadataTag *comment; -+ comment = av_metadata_get(d->formatContext->metadata, "comment", NULL, 0); - // FIXME: is this UTF8 or something?? -- if( d->formatContext->comment[0] != '\0' ) -- return QString::fromLocal8Bit( d->formatContext->comment ); -+ if( comment ) -+ return QString::fromLocal8Bit( comment->value ); - else - return QString(); - } -@@ -308,8 +314,14 @@ - - #if LIBAVCODEC_VERSION_MAJOR < 52 - int len = ::avcodec_decode_audio( --#else -+#elif LIBAVCODEC_VERSION_MAJOR == 52 - int len = ::avcodec_decode_audio2( -+#else -+ AVPacket avpkt; -+ av_init_packet(&avpkt); -+ avpkt.data = d->packetData; -+ avpkt.size = d->packetSize; -+ int len = ::avcodec_decode_audio3( - #endif - #ifdef FFMPEG_BUILD_PRE_4629 - &d->formatContext->streams[0]->codec, -@@ -318,7 +330,11 @@ - #endif - (short*)d->alignedOutputBuffer, - &d->outputBufferSize, -+#if LIBAVCODEC_VERSION_MAJOR < 53 - d->packetData, d->packetSize ); -+#else -+ &avpkt); -+#endif - - if( d->packetSize <= 0 || len < 0 ) - ::av_free_packet( &d->packet ); |