changeset 606:0b1f9eda1ea6

warnings killed
author szabii
date Tue, 24 Apr 2001 00:02:20 +0000
parents abd7391a31e3
children 4407bb4741c9
files mplayer.c
diffstat 1 files changed, 17 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Apr 23 23:46:24 2001 +0000
+++ b/mplayer.c	Tue Apr 24 00:02:20 2001 +0000
@@ -319,6 +319,8 @@
 
 static int play_in_bg=0;
 
+extern void avi_fixate();
+
 void exit_player(char* how){
   if(how) printf("\nExiting... (%s)\n",how);
   if(verbose) printf("max framesize was %d bytes\n",max_framesize);
@@ -358,6 +360,14 @@
 
 int divx_quality=0;
 
+extern int vcd_get_track_end(int fd,int track);
+extern int init_audio(sh_audio_t *sh_audio);
+extern int init_video_codec(sh_video_t *sh_video);
+extern void mpeg2_allocate_image_buffers(picture_t * picture);
+extern void write_avi_header_1(FILE *f,int fcc,float fps,int width,int height);
+extern int vo_init(void);
+extern int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int maxlen);
+
 int main(int argc,char* argv[], char *envp[]){
 char* filename=NULL; //"MI2-Trailer.avi";
 int i;
@@ -723,8 +733,8 @@
   if(sh_audio) avi_bitrate-=sh_audio->audio.dwLength;
   if(verbose) printf("AVI video length=%d\n",avi_bitrate);
   avi_bitrate=((float)avi_bitrate/(float)sh_video->video.dwLength)*sh_video->fps;
-  printf("VIDEO:  [%.4s]  %dx%d  %dbpp  %4.2f fps  %5.1f kbps (%4.1f kbyte/s)\n",
-    &sh_video->bih->biCompression,
+  printf("VIDEO:  [%.4s]  %ldx%ld  %dbpp  %4.2f fps  %5.1f kbps (%4.1f kbyte/s)\n",
+    (char *)&sh_video->bih->biCompression,
     sh_video->bih->biWidth,
     sh_video->bih->biHeight,
     sh_video->bih->biBitCount,
@@ -757,8 +767,8 @@
     }
   }
   sh_video->fps=1000.0f; sh_video->frametime=0.001f; // 1ms
-  printf("VIDEO:  [%.4s]  %dx%d  %dbpp\n",
-    &sh_video->bih->biCompression,
+  printf("VIDEO:  [%.4s]  %ldx%ld  %dbpp\n",
+    (char *)&sh_video->bih->biCompression,
     sh_video->bih->biWidth,
     sh_video->bih->biHeight,
     sh_video->bih->biBitCount);
@@ -771,7 +781,7 @@
    break;
  }
  case DEMUXER_TYPE_MPEG_PS: {
-  if(has_audio)
+  if(has_audio) {
   if(!ds_fill_buffer(d_audio)){
     printf("MPEG: No Audio stream found...  ->nosound\n");
     has_audio=0;sh_audio=NULL;
@@ -785,6 +795,7 @@
       default: has_audio=0; // unknown type
     }
   }
+  }
   break;
  }
 } // switch(file_format)
@@ -1422,7 +1433,7 @@
       ret = ICDecompress(sh_video->hic, ICDECOMPRESS_NOTKEYFRAME, 
                          sh_video->bih,   start,
                         &sh_video->o_bih, sh_video->our_out_buffer);
-      if(ret){ printf("Error decompressing frame, err=%d\n",ret);break; }
+      if(ret){ printf("Error decompressing frame, err=%d\n",(int)ret);break; }
     }
     current_module="draw_frame";
       t2=GetTimer();t=t2-t;video_time_usage+=t*0.000001f;