summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-23 19:30:05 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-23 19:30:05 +0000
commit2ee913d372b656598af6bdda527921c7fbb12ed3 (patch)
treeaf8691643c4843c541060a3c32fa6d4e105625bd /mencoder.c
parent6d4dcace072ba12866c719ab86d9ea304be0bdd9 (diff)
downloadmpv-2ee913d372b656598af6bdda527921c7fbb12ed3.tar.bz2
mpv-2ee913d372b656598af6bdda527921c7fbb12ed3.tar.xz
workaround! exit if there's no video stream (hopefully it's a proper fix)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11514 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index 4caed3bd03..7f656a62a7 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -510,6 +510,12 @@ d_dvdsub=demuxer->sub;
sh_audio=d_audio->sh;
sh_video=d_video->sh;
+ if(!sh_video)
+ {
+ mp_msg(MSGT_CPLAYER,MSGL_FATAL,"Video stream is mandatory!\n");
+ mencoder_exit(1,NULL);
+ }
+
if(!video_read_properties(sh_video)){
printf(MSGTR_CannotReadVideoProperties);
mencoder_exit(1,NULL);