summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mencoder.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index 5cdda0386d..e3b30b3e54 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -412,6 +412,11 @@ video_out.draw_frame=draw_frame;
// 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 ===============