[vlc-devel] commit: avformat mux: only write trailer if header was written ( Rafaël Carré )
git version control
git at videolan.org
Thu Jan 21 10:09:02 CET 2010
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Jan 21 10:08:32 2010 +0100| [837e80b8e71c22f2a6acca1c2e6554a44533b231] | committer: Rafaël Carré
avformat mux: only write trailer if header was written
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=837e80b8e71c22f2a6acca1c2e6554a44533b231
---
modules/demux/avformat/mux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index aadcbff..cd40492 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -174,7 +174,7 @@ void CloseMux( vlc_object_t *p_this )
sout_mux_sys_t *p_sys = p_mux->p_sys;
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" );
}
More information about the vlc-devel
mailing list