diff mencoder.c @ 12016:b962aaad2940

rawvideo muxer patch by John Earl <jwe21@cam.ac.uk>
author ranma
date Tue, 09 Mar 2004 14:46:34 +0000
parents 9134c957116a
children 846ed866f86c
line wrap: on
line diff
--- a/mencoder.c	Tue Mar 09 06:57:28 2004 +0000
+++ b/mencoder.c	Tue Mar 09 14:46:34 2004 +0000
@@ -527,6 +527,10 @@
     mp_msg(MSGT_MENCODER,MSGL_INFO,"input fps will be interpreted as %5.2f instead\n", sh_video->fps);
   }
 
+  if(sh_audio && out_file_format==MUXER_TYPE_RAWVIDEO){
+      mp_msg(MSGT_MENCODER,MSGL_ERR,"Output file format RAWVIDEO does not support audio - disabling audio\n");
+      sh_audio=NULL;
+  }
   if(sh_audio && out_audio_codec<0){
     if(audio_id==-2)
 	mp_msg(MSGT_MENCODER,MSGL_ERR,"This demuxer doesn't support -nosound yet.\n");