summaryrefslogtreecommitdiff
blob: 5529fb7308dcf178519cc4f59d341c4b18b7e14f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -urN gejengel-0.1.4.old/src/AudioDecoder/ffmpegdecoder.cpp gejengel-0.1.4/src/AudioDecoder/ffmpegdecoder.cpp
--- gejengel-0.1.4.old/src/AudioDecoder/ffmpegdecoder.cpp	2013-06-22 18:48:46.176890946 +0200
+++ gejengel-0.1.4/src/AudioDecoder/ffmpegdecoder.cpp	2013-06-22 18:50:04.516888158 +0200
@@ -88,7 +88,7 @@
         throw logic_error("Could not open input file: " + m_Filepath);
     }
 
-    if (av_find_stream_info(m_pFormatContext) < 0)
+    if (avformat_find_stream_info(m_pFormatContext, NULL) < 0)
     {
         throw logic_error("Could not find stream information in " + m_Filepath);
     }
@@ -134,7 +134,7 @@
     m_pFormatContext->flags |= AVFMT_FLAG_GENPTS;
     m_pFormatContext->streams[m_AudioStream]->discard = AVDISCARD_DEFAULT;
 
-    if (avcodec_open(m_pAudioCodecContext, m_pAudioCodec) < 0)
+    if (avcodec_open2(m_pAudioCodecContext, m_pAudioCodec, NULL) < 0)
     {
         throw logic_error("Could not open audio codec for " + m_Filepath);
     }