comparison mplayer.c @ 273:167356f35b8f

lamer_protection++
author arpi_esp
date Sun, 01 Apr 2001 23:01:37 +0000
parents 3ad72b5ee016
children da98e96499bb
comparison
equal deleted inserted replaced
272:8ffe2f459851 273:167356f35b8f
938 exit(1); 938 exit(1);
939 } 939 }
940 //if(verbose) printf("AVI out_fmt=%X\n",out_fmt); 940 //if(verbose) printf("AVI out_fmt=%X\n",out_fmt);
941 if(verbose) if(out_fmt==IMGFMT_YUY2) printf("Using YUV/YUY2 video output format!\n"); 941 if(verbose) if(out_fmt==IMGFMT_YUY2) printf("Using YUV/YUY2 video output format!\n");
942 avi_header.our_out_buffer=NULL; 942 avi_header.our_out_buffer=NULL;
943 DS_VideoDecoder_Open(avi_header.video_codec,avi_header.vids_guid, &avi_header.bih, 0, &avi_header.our_out_buffer); 943 if(DS_VideoDecoder_Open(avi_header.video_codec,avi_header.vids_guid, &avi_header.bih, 0, &avi_header.our_out_buffer)){
944 printf("ERROR: Couldn't open required DirectShow codec: %s\n",avi_header.video_codec);
945 printf("Maybe you forget to upgrade your win32 codecs?? It's time to download the new\n");
946 printf("package from: ftp://thot.banki.hu/esp-team/linux/MPlayer/w32codec.zip !\n");
947 printf("Or you should disable DShow support: make distclean;make -f Makefile.No-DS\n");
948 exit(1);
949 }
944 950
945 if(out_fmt==IMGFMT_YUY2) 951 if(out_fmt==IMGFMT_YUY2)
946 DS_VideoDecoder_SetDestFmt(16,mmioFOURCC('Y', 'U', 'Y', '2')); 952 DS_VideoDecoder_SetDestFmt(16,mmioFOURCC('Y', 'U', 'Y', '2'));
947 // DS_VideoDecoder_SetDestFmt(16,mmioFOURCC('Y', 'V', '1', '2')); 953 // DS_VideoDecoder_SetDestFmt(16,mmioFOURCC('Y', 'V', '1', '2'));
948 else 954 else
1277 a_in_buffer_size=avi_header.audio_in_minsize; 1283 a_in_buffer_size=avi_header.audio_in_minsize;
1278 a_in_buffer=malloc(a_in_buffer_size); 1284 a_in_buffer=malloc(a_in_buffer_size);
1279 a_in_buffer_len=0; 1285 a_in_buffer_len=0;
1280 1286
1281 } else { 1287 } else {
1282 printf("Could not load/initialize Win32/DirctShow AUDIO codec (missing .AX file?)\n"); 1288 printf("ERROR: Could not load/initialize Win32/DirctShow AUDIO codec: %s\n",avi_header.audio_codec);
1283 if((in_fmt->wFormatTag)==0x55){ 1289 if((in_fmt->wFormatTag)==0x55){
1284 printf("Audio format is MP3 -> fallback to internal mp3lib/mpg123\n"); 1290 printf("Audio format is MP3 -> fallback to internal mp3lib/mpg123\n");
1285 has_audio=1; // fallback to mp3lib 1291 has_audio=1; // fallback to mp3lib
1286 } else 1292 } else
1293 printf("Audio disabled! Try to upgrade your w32codec.zip package!!!\n");
1287 has_audio=0; // nosound 1294 has_audio=0; // nosound
1288 } 1295 }
1289 #endif 1296 #endif
1290 } 1297 }
1291 1298