[MPlayer-cvslog] r23316 - trunk/libmpcodecs/vd_raw.c

reimar subversion at mplayerhq.hu
Mon May 14 20:21:39 CEST 2007


Author: reimar
Date: Mon May 14 20:21:39 2007
New Revision: 23316

Log:
Make vd_raw VDCTRL_QUERY_FORMAT simpler to understand


Modified:
   trunk/libmpcodecs/vd_raw.c

Modified: trunk/libmpcodecs/vd_raw.c
==============================================================================
--- trunk/libmpcodecs/vd_raw.c	(original)
+++ trunk/libmpcodecs/vd_raw.c	Mon May 14 20:21:39 2007
@@ -18,9 +18,10 @@ LIBVD_EXTERN(raw)
 
 // to set/get/query special features/parameters
 static int control(sh_video_t *sh,int cmd,void* arg,...){
+    int format = sh->bih ? sh->bih->biCompression : sh->format;
     switch(cmd){
     case VDCTRL_QUERY_FORMAT:
-	if( (*((int*)arg)) == (sh->bih ? sh->bih->biCompression : sh->format) ) return CONTROL_TRUE;
+	if (*(int *)arg == format) return CONTROL_TRUE;
 	return CONTROL_FALSE;
     }
     return CONTROL_UNKNOWN;



More information about the MPlayer-cvslog mailing list