[Mplayer-cvslog] CVS: main mencoder.c,1.24,1.25

pl pl at mplayer.dev.hu
Wed Nov 14 00:43:35 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv2933

Modified Files:
	mencoder.c 
Log Message:
fixes a segfault if file specified in -o can't be accessed
(bug found by Colin Marquardt <colin at marquardt-home.de>)


Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- mencoder.c	13 Nov 2001 22:58:14 -0000	1.24
+++ mencoder.c	13 Nov 2001 23:43:33 -0000	1.25
@@ -412,6 +412,11 @@
 
 // set up output file:
 muxer_f=fopen(out_filename,"wb");
+if(!muxer_f) {
+  printf("Cannot open output file '%s'\n", out_filename);
+  exit(1);
+}
+
 muxer=aviwrite_new_muxer();
 
 // ============= VIDEO ===============




More information about the MPlayer-cvslog mailing list