From 6a3353a1e90c94367994225e4e142bc56aed89d9 Mon Sep 17 00:00:00 2001 From: rfelker Date: Fri, 2 Dec 2005 19:41:25 +0000 Subject: [PATCH] fatal error when muxer cannot initialize git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17079 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mencoder.c b/mencoder.c index ac575e1ec1..1898c4e058 100644 --- a/mencoder.c +++ b/mencoder.c @@ -691,6 +691,10 @@ if(!muxer_f) { } 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 ===============