Line 0
Link Here
|
|
|
1 |
--- xbmc/cdrip/EncoderFFmpeg.cpp.orig 2013-02-06 19:11:19.000000000 +0100 |
2 |
+++ xbmc/cdrip/EncoderFFmpeg.cpp 2013-02-06 19:11:45.000000000 +0100 |
3 |
@@ -77,7 +77,13 @@ |
4 |
} |
5 |
|
6 |
m_Format = m_dllAvFormat.avformat_alloc_context(); |
7 |
+#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,1,0) |
8 |
m_Format->pb = m_dllAvFormat.avio_alloc_context(m_BCBuffer, |
9 |
+#elif LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,0,0) |
10 |
+ m_Format->pb = m_dllAvFormat.avio_alloc_context(m_BCBuffer, |
11 |
+#else |
12 |
+ m_Format->pb = m_dllAvFormat.avio_alloc_context(m_BCBuffer, |
13 |
+#endif |
14 |
if (!m_Format->pb) |
15 |
{ |
16 |
m_dllAvUtil.av_freep(&m_Format); |