]> git.pld-linux.org Git - packages/amarok.git/blobdiff - amarok-ffmpeg08.patch
- typo and more fixes
[packages/amarok.git] / amarok-ffmpeg08.patch
index a371dc2f9b758f1c7b9894da45b02b78d9a405f9..fcf3418735483c80b2f0630f555c141165e02dbc 100644 (file)
@@ -5,10 +5,19 @@
          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_AUDI )
++            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 @@
  }
  
This page took 0.049116 seconds and 4 git commands to generate.