Mercurial > mplayer.hg
changeset 16107:8d4a3c9001de
restrict to YV12 since the default limit does not work well for anything else.
author | reimar |
---|---|
date | Tue, 26 Jul 2005 12:14:33 +0000 |
parents | 2d473bb5afcc |
children | ab2504f2d5d6 |
files | libmpcodecs/vf_cropdetect.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_cropdetect.c Tue Jul 26 11:28:29 2005 +0000 +++ b/libmpcodecs/vf_cropdetect.c Tue Jul 26 12:14:33 2005 +0000 @@ -138,11 +138,20 @@ 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;