changeset 17078:9c94272f5eb7

fatal error when muxer cannot initialize
author rfelker
date Fri, 02 Dec 2005 19:41:25 +0000
parents 5b8ab25eb7ec
children c3893e949327
files mencoder.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mencoder.c	Fri Dec 02 14:35:19 2005 +0000
+++ b/mencoder.c	Fri Dec 02 19:41:25 2005 +0000
@@ -691,6 +691,10 @@
 }
 
 muxer=muxer_new_muxer(out_file_format,muxer_f);
+if(!muxer) {
+  mp_msg(MSGT_MENCODER, MSGL_FATAL, "Cannot initialize muxer.");
+  mencoder_exit(1,NULL);
+}
 
 // ============= VIDEO ===============