diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-13 23:43:33 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-13 23:43:33 +0000 |
commit | 9590f33666d78a6b3f975139945086c45247e9d4 (patch) | |
tree | 0f87b6226c4b2bcb8947ce7614aef9d300a6fd4c | |
parent | 3b46416be124795e0b75f7ef4b51545018e656cf (diff) | |
download | mpv-9590f33666d78a6b3f975139945086c45247e9d4.tar.bz2 mpv-9590f33666d78a6b3f975139945086c45247e9d4.tar.xz |
fixes a segfault if file specified in -o can't be accessed
(bug found by Colin Marquardt <colin@marquardt-home.de>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2888 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mencoder.c | 5 |
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 =============== |