[MPlayer-cvslog] r22080 - trunk/libmpcodecs/vd_lzo.c

reimar subversion at mplayerhq.hu
Tue Jan 30 20:00:54 CET 2007


Author: reimar
Date: Tue Jan 30 20:00:54 2007
New Revision: 22080

Modified:
   trunk/libmpcodecs/vd_lzo.c

Log:
More simplification


Modified: trunk/libmpcodecs/vd_lzo.c
==============================================================================
--- trunk/libmpcodecs/vd_lzo.c	(original)
+++ trunk/libmpcodecs/vd_lzo.c	Tue Jan 30 20:00:54 2007
@@ -39,8 +39,7 @@
     //printf("[%s] Query!! (%s)\n", MOD_NAME, (codec==IMGFMT_YV12)?"YV12":"none");
     switch(cmd){
     case VDCTRL_QUERY_FORMAT:
-	if( (*((int*)arg)) == IMGFMT_BGR24 && priv->codec == IMGFMT_BGR24) return CONTROL_TRUE;
-	if( (*((int*)arg)) == IMGFMT_YV12 && priv->codec == IMGFMT_YV12) return CONTROL_TRUE;
+	if (*(int *)arg == priv->codec) return CONTROL_TRUE;
 	return CONTROL_FALSE;
     }
     return CONTROL_UNKNOWN;



More information about the MPlayer-cvslog mailing list