Commit 837e80b8 authored by Rafaël Carré's avatar Rafaël Carré

avformat mux: only write trailer if header was written

parent f4f47148
...@@ -174,7 +174,7 @@ void CloseMux( vlc_object_t *p_this ) ...@@ -174,7 +174,7 @@ void CloseMux( vlc_object_t *p_this )
sout_mux_sys_t *p_sys = p_mux->p_sys; sout_mux_sys_t *p_sys = p_mux->p_sys;
unsigned int i; unsigned int i;
if( av_write_trailer( p_sys->oc ) < 0 ) if( !p_sys->b_write_header && av_write_trailer( p_sys->oc ) < 0 )
{ {
msg_Err( p_mux, "could not write trailer" ); msg_Err( p_mux, "could not write trailer" );
} }
......
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