restrict to YV12 since the default limit does not work well for anything else.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16108 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-07-26 12:14:33 +00:00
parent 36d9999fad
commit 6adbf616e4
1 changed files with 9 additions and 0 deletions

View File

@ -138,11 +138,20 @@ if(++vf->priv->fno>2){ // ignore first 2 frames - they may be empty
return vf_next_put_image(vf,dmpi);
}
static int query_format(struct vf_instance_s* vf, unsigned int fmt) {
switch(fmt) {
// the default limit value works only right with YV12 right now.
case IMGFMT_YV12:
return vf_next_query_format(vf, fmt);
}
return 0;
}
//===========================================================================//
static int open(vf_instance_t *vf, char* args){
vf->config=config;
vf->put_image=put_image;
vf->query_format=query_format;
vf->priv=malloc(sizeof(struct vf_priv_s));
vf->priv->limit=24; // should be option
vf->priv->round = 0;