diff mplayer.c @ 332:a5c6f9d536dd

find_codec() modified
author szabii
date Tue, 10 Apr 2001 23:18:01 +0000
parents 662f876d77e9
children 3ca0b1b739a5
line wrap: on
line diff
--- a/mplayer.c	Tue Apr 10 21:41:31 2001 +0000
+++ b/mplayer.c	Tue Apr 10 23:18:01 2001 +0000
@@ -792,7 +792,7 @@
 //================== Init AUDIO (codec) ==========================
 if(has_audio){
   // Go through the codec.conf and find the best codec...
-  sh_audio->codec=find_codec(sh_audio->format,NULL,1);
+  sh_audio->codec=find_codec(sh_audio->format,NULL,NULL,1);
   if(!sh_audio->codec){
     printf("Can't find codec for audio format 0x%X !\n",sh_audio->format);
     has_audio=0;
@@ -815,7 +815,7 @@
 //================== Init VIDEO (codec & libvo) ==========================
 
 // Go through the codec.conf and find the best codec...
-sh_video->codec=find_codec(sh_video->format,(unsigned int*) &sh_video->bih.biCompression,0);
+sh_video->codec=find_codec(sh_video->format,(unsigned int*) &sh_video->bih.biCompression,NULL,0);
 if(!sh_video->codec){
     printf("Can't find codec for video format 0x%X !\n",sh_video->format);
     exit(1);