Commit 5dbdccf2 authored by Rafaël Carré's avatar Rafaël Carré

avformat: prefer avformat_new_stream() over av_new_stream()

parent 7df0345e
...@@ -218,7 +218,11 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input ) ...@@ -218,7 +218,11 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
return VLC_EGENERIC; 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); stream = av_new_stream( p_sys->oc, p_sys->oc->nb_streams);
#endif
if( !stream ) if( !stream )
{ {
free( p_input->p_sys ); 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