[vlc-devel] [PATCH 12/15] avformat: prefer avformat_new_stream() over av_new_stream() (cherry picked from commit 5dbdccf2fd7829a8a0fb3ccae65ed17f71c7078a)
KO Myung-Hun
komh78 at gmail.com
Fri Mar 2 16:03:09 CET 2012
From: Rafaël Carré <funman at videolan.org>
Signed-off-by: KO Myung-Hun <komh at chollian.net>
---
modules/demux/avformat/mux.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index b30392c..8dccbbe 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -211,7 +211,11 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
return VLC_EGENERIC;
}
+#if (LIBAVFORMAT_VERSION_INT >= ((53<<16)+(10<<8)+0))
+ stream = avformat_new_stream( p_sys->oc, NULL);
+#else
stream = av_new_stream( p_sys->oc, p_sys->oc->nb_streams);
+#endif
if( !stream )
{
free( p_input->p_sys );
--
1.7.3.2
More information about the vlc-devel
mailing list