--- amarok-2.4.1/src/musicbrainz/MusicDNSAudioDecoder.cpp~ 2011-05-05 21:06:53.000000000 +0200 +++ amarok-2.4.1/src/musicbrainz/MusicDNSAudioDecoder.cpp 2011-07-01 14:57:41.811795115 +0200 @@ -150,7 +150,7 @@ audioStream = -1; for(i = 0; i < ( int )pFormatCtx->nb_streams; i++ ) - if( pFormatCtx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO ) + if( pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO ) { audioStream = i; break; @@ -198,7 +198,7 @@ } outSize = bufferSize; - decoderRet = avcodec_decode_audio2( pCodecCtx, ( qint16 * )buffer, &outSize, tmpPacket.data, tmpPacket.size ); + decoderRet = avcodec_decode_audio( pCodecCtx, ( qint16 * )buffer, &outSize, &tmpPacket ); if( decoderRet < 0 ) { debug() << "Error while decoding."; @@ -252,4 +252,4 @@ } -#include "MusicDNSAudioDecoder.moc" \ Brak znaku nowej linii na końcu pliku +#include "MusicDNSAudioDecoder.moc"