summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/gejengel/files/gejengel-0.1.4-libav9.patch')
-rw-r--r--media-sound/gejengel/files/gejengel-0.1.4-libav9.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/media-sound/gejengel/files/gejengel-0.1.4-libav9.patch b/media-sound/gejengel/files/gejengel-0.1.4-libav9.patch
new file mode 100644
index 000000000000..5529fb7308dc
--- /dev/null
+++ b/media-sound/gejengel/files/gejengel-0.1.4-libav9.patch
@@ -0,0 +1,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);
+ }