[vlc-devel] [PATCH 08/15] Workaround FFmpeg doc/APIchanges lies (cherry picked from commit 5b55c4dbab0ee2700300f9d8b79747a42ef26158)
KO Myung-Hun
komh78 at gmail.com
Fri Mar 2 16:03:05 CET 2012
From: Rafaël Carré <funman at videolan.org>
Signed-off-by: KO Myung-Hun <komh at chollian.net>
---
modules/demux/avformat/demux.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index dff8a08..357f46c 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -251,7 +251,7 @@ int OpenDemux( vlc_object_t *p_this )
psz_url = NULL;
vlc_avcodec_lock(); /* avformat calls avcodec behind our back!!! */
-#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(17<<8)+0)
+#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(26<<8)+0)
error = avformat_find_stream_info( p_sys->ic, NULL /* options */ );
#else
error = av_find_stream_info( p_sys->ic );
@@ -537,7 +537,7 @@ void CloseDemux( vlc_object_t *p_this )
free( p_sys->tk_pcr );
if( p_sys->ic )
-#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(17<<8)+0)
+#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(26<<8)+0)
avformat_close_input( &p_sys->ic );
#else
av_close_input_stream( p_sys->ic );
--
1.7.3.2
More information about the vlc-devel
mailing list