From 5865c8ccde6c16f290332a51adcc678e7f67acaf Mon Sep 17 00:00:00 2001 From: ranma Date: Tue, 9 Mar 2004 14:46:34 +0000 Subject: rawvideo muxer patch by John Earl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12017 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mencoder.c') diff --git a/mencoder.c b/mencoder.c index a7095d700b..4adbd77d58 100644 --- a/mencoder.c +++ b/mencoder.c @@ -527,6 +527,10 @@ sh_video=d_video->sh; 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"); -- cgit v1.2.3