[MPlayer-cvslog] r35145 - trunk/libvo/vo_fbdev2.c

reimar subversion at mplayerhq.hu
Mon Sep 3 00:06:01 CEST 2012


Author: reimar
Date: Mon Sep  3 00:06:01 2012
New Revision: 35145

Log:
Simplify a condition.

Modified:
   trunk/libvo/vo_fbdev2.c

Modified: trunk/libvo/vo_fbdev2.c
==============================================================================
--- trunk/libvo/vo_fbdev2.c	Sun Sep  2 23:51:42 2012	(r35144)
+++ trunk/libvo/vo_fbdev2.c	Mon Sep  3 00:06:01 2012	(r35145)
@@ -295,7 +295,7 @@ static int query_format(uint32_t format)
 {
 	// open the device, etc.
 	if (fb_preinit(0)) return 0;
-	if ((format & IMGFMT_BGR_MASK) == IMGFMT_BGR) {
+	if (IMGFMT_IS_BGR(format)) {
 		int fb_target_bpp = format & 0xff;
 		set_bpp(&fb_vinfo, fb_target_bpp);
 		fb_vinfo.xres_virtual = fb_vinfo.xres;


More information about the MPlayer-cvslog mailing list