[Mplayer-cvslog] CVS: main mencoder.c,1.135,1.136

Richard Felker CVS rfelker at mplayerhq.hu
Thu Jun 27 21:33:31 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv23177

Modified Files:
	mencoder.c 
Log Message:
clean up warnings in mencoder.


Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -r1.135 -r1.136
--- mencoder.c	23 Jun 2002 19:09:25 -0000	1.135
+++ mencoder.c	27 Jun 2002 19:33:28 -0000	1.136
@@ -44,8 +44,10 @@
 
 #include "libmpcodecs/dec_audio.h"
 #include "libmpcodecs/dec_video.h"
+#include "libmpcodecs/vf.h"
 
 #ifdef HAVE_MP3LAME
+#undef CDECL
 #include <lame/lame.h>
 #endif
 
@@ -596,15 +598,15 @@
 
     switch(mux_v->codec){
     case VCODEC_DIVX4:
-	sh_video->vfilter=vf_open_encoder(NULL,"divx4",mux_v); break;
+	sh_video->vfilter=vf_open_encoder(NULL,"divx4",(char *)mux_v); break;
     case VCODEC_LIBAVCODEC:
-        sh_video->vfilter=vf_open_encoder(NULL,"lavc",mux_v); break;
+        sh_video->vfilter=vf_open_encoder(NULL,"lavc",(char *)mux_v); break;
     case VCODEC_RAWRGB:
-        sh_video->vfilter=vf_open_encoder(NULL,"rawrgb",mux_v); break;
+        sh_video->vfilter=vf_open_encoder(NULL,"rawrgb",(char *)mux_v); break;
     case VCODEC_VFW:
-        sh_video->vfilter=vf_open_encoder(NULL,"vfw",mux_v); break;
+        sh_video->vfilter=vf_open_encoder(NULL,"vfw",(char *)mux_v); break;
     case VCODEC_LIBDV:
-        sh_video->vfilter=vf_open_encoder(NULL,"libdv",mux_v); break;
+        sh_video->vfilter=vf_open_encoder(NULL,"libdv",(char *)mux_v); break;
     }
     if(!mux_v->bih || !sh_video->vfilter){
         mp_msg(MSGT_MENCODER,MSGL_FATAL,"Failed to open the encoder\n");
@@ -854,13 +856,13 @@
 		  /* mono encoding, a bit tricky */
 		  if (mux_a->wf->nChannels == 1)
 		  {
-		    len = lame_encode_buffer(lame, tmp, tmp, len/2,
+		    len = lame_encode_buffer(lame, (short *)tmp, (short *)tmp, len/2,
 			mux_a->buffer+mux_a->buffer_len, mux_a->buffer_size-mux_a->buffer_len);
 		  }
 		  else
 		  {
 		    len=lame_encode_buffer_interleaved(lame,
-		      tmp,len/4,
+		      (short *)tmp,len/4,
 		      mux_a->buffer+mux_a->buffer_len,mux_a->buffer_size-mux_a->buffer_len);
 		  }
 		  if(len<0) break; // error
@@ -878,13 +880,13 @@
 		  /* mono encoding, a bit tricky */
 		  if (mux_a->wf->nChannels == 1)
 		  {
-		    len = lame_encode_buffer(lame, tmp, tmp, len/2,
+		    len = lame_encode_buffer(lame, (short *)tmp, (short *)tmp, len/2,
 			mux_a->buffer+mux_a->buffer_len, mux_a->buffer_size-mux_a->buffer_len);
 		  }
 		  else
 		  {
 		    len=lame_encode_buffer_interleaved(lame,
-		      tmp,len/4,
+		      (short *)tmp,len/4,
 		      mux_a->buffer+mux_a->buffer_len,mux_a->buffer_size-mux_a->buffer_len);
 		  }
 		  if(len<0) break; // error
@@ -976,7 +978,7 @@
     if(skip_flag<=0) aviwrite_write_chunk(muxer,mux_v,muxer_f,in_size,(sh_video->ds->flags&1)?0x10:0);
     break;
 case VCODEC_FRAMENO:
-    mux_v->buffer=&decoded_frameno; // tricky
+    mux_v->buffer=(unsigned char *)&decoded_frameno; // tricky
     if(skip_flag<=0) aviwrite_write_chunk(muxer,mux_v,muxer_f,sizeof(int),0x10);
     break;
 default:




More information about the MPlayer-cvslog mailing list