[Mplayer-cvslog] CVS: main/libmpcodecs dec_video.c,1.118,1.119

Arpi of Ize arpi at mplayer.dev.hu
Sat Mar 9 22:33:19 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mplayer:/var/tmp.root/cvs-serv12304

Modified Files:
	dec_video.c 
Log Message:
old temp vars removed, in-codecs equalizer support added, error message if -vfm N/A

Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/dec_video.c,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- dec_video.c	7 Mar 2002 02:44:16 -0000	1.118
+++ dec_video.c	9 Mar 2002 21:33:17 -0000	1.119
@@ -30,19 +30,6 @@
 #include "dec_video.h"
 
 // ===================================================================
-// temp hack:
-
-#ifdef FF_POSTPROCESS
-#ifndef MBC
-#define MBC 48
-#define MBR 36
-#endif
-int quant_store[MBR+1][MBC+1]; // [Review]
-#endif
-
-//int avcodec_inited=0;
-
-// ===================================================================
 
 extern int benchmark;
 extern double video_time_usage;
@@ -123,8 +110,7 @@
 	}
     }
     try_sw_control:
-
-
+    if(mpvdec) return mpvdec->control(sh_video,VDCTRL_SET_EQUALIZER,item,(int)value);
     return 0;
 }
 
@@ -148,7 +134,11 @@
     if(mpcodecs_vd_drivers[i]->info->id==sh_video->codec->driver){
 	mpvdec=mpcodecs_vd_drivers[i]; break;
     }
-  if(!mpvdec) return 0; // no such driver
+  if(!mpvdec){
+      mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Requested video codec family [%s] (vfm=%d) not available (enable it at compile time!)\n",
+          sh_video->codec->name, sh_video->codec->driver);
+      return 0; // no such driver
+  }
   
   printf("Selecting Video Decoder: [%s] %s\n",mpvdec->info->short_name,mpvdec->info->name);
   




More information about the MPlayer-cvslog mailing list