diff mencoder.c @ 11513:552ddee604c9

workaround! exit if there's no video stream (hopefully it's a proper fix)
author alex
date Sun, 23 Nov 2003 19:30:05 +0000
parents 719d696267a8
children 18d3b3a1101b
line wrap: on
line diff
--- a/mencoder.c	Sun Nov 23 17:09:59 2003 +0000
+++ b/mencoder.c	Sun Nov 23 19:30:05 2003 +0000
@@ -510,6 +510,12 @@
 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);