Commit 07b4be40 authored by Rafaël Carré's avatar Rafaël Carré

avformat: prefer avformat_new_stream() over av_new_stream() (cherry picked...

avformat: prefer avformat_new_stream() over av_new_stream() (cherry picked from commit 5dbdccf2fd7829a8a0fb3ccae65ed17f71c7078a)
Signed-off-by: default avatarKO Myung-Hun <komh@chollian.net>
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 2769212f
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment