[MPlayer-cvslog] CVS: main/libmpcodecs vf_cropdetect.c,1.11,1.12

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Jul 26 14:14:36 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv10514

Modified Files:
	vf_cropdetect.c 
Log Message:
restrict to YV12 since the default limit does not work well for anything else.


Index: vf_cropdetect.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_cropdetect.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- vf_cropdetect.c	25 Jan 2005 10:07:14 -0000	1.11
+++ vf_cropdetect.c	26 Jul 2005 12:14:33 -0000	1.12
@@ -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;




More information about the MPlayer-cvslog mailing list