summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/dec_video.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-09 21:33:17 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-09 21:33:17 +0000
commit56830c125c89a36e376ea5740eaf02a16bcd6e80 (patch)
treea0ef18e5594070ac8348f09699282af684adcd2e /libmpcodecs/dec_video.c
parent380d4040ea2cb39d8e1a5731992c60c96c512111 (diff)
downloadmpv-56830c125c89a36e376ea5740eaf02a16bcd6e80.tar.bz2
mpv-56830c125c89a36e376ea5740eaf02a16bcd6e80.tar.xz
old temp vars removed, in-codecs equalizer support added, error message if -vfm N/A
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5006 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/dec_video.c')
-rw-r--r--libmpcodecs/dec_video.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c
index dc6631f86d..23b4f946c4 100644
--- a/libmpcodecs/dec_video.c
+++ b/libmpcodecs/dec_video.c
@@ -30,19 +30,6 @@ extern int verbose; // defined in mplayer.c
#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 @@ int set_video_colors(sh_video_t *sh_video,char *item,int value)
}
}
try_sw_control:
-
-
+ if(mpvdec) return mpvdec->control(sh_video,VDCTRL_SET_EQUALIZER,item,(int)value);
return 0;
}
@@ -148,7 +134,11 @@ pitches[0] = pitches[1] =pitches[2] = 0; /* fake unknown */
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);