[MPlayer-cvslog] r36592 - trunk/libvo/vo_bl.c

reimar subversion at mplayerhq.hu
Sat Jan 18 12:59:59 CET 2014


Author: reimar
Date: Sat Jan 18 12:59:59 2014
New Revision: 36592

Log:
Do not needlessly request chroma.

In addition to avoid wasting CPU time, this potentially
avoids issues with odd-sized resolutions.

Modified:
   trunk/libvo/vo_bl.c

Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c	Sat Jan 18 12:58:13 2014	(r36591)
+++ trunk/libvo/vo_bl.c	Sat Jan 18 12:59:59 2014	(r36592)
@@ -212,13 +212,13 @@ static void udp_close(bl_host_t *h) {
 #define NO_BLS 3
 
 static bl_properties_t bls[NO_BLS] = {
-	{ "hdl", IMGFMT_YV12, 1, 18, 8, 8,
+	{ "hdl", IMGFMT_Y8, 1, 18, 8, 8,
 	&bml_init, &bml_write_frame, &bml_close,
 	&udp_init, &udp_send, &udp_close },
-	{ "arcade", IMGFMT_YV12, 1, 26, 20, 8,
+	{ "arcade", IMGFMT_Y8, 1, 26, 20, 8,
 	&bml_init, &bml_write_frame, &bml_close,
 	&udp_init, &udp_send, &udp_close },
-	{ "grayscale", IMGFMT_YV12, 1, -1, -1, 8, /* use width and height of movie */
+	{ "grayscale", IMGFMT_Y8, 1, -1, -1, 8, /* use width and height of movie */
 	&bml_init, &bml_write_frame, &bml_close,
 	&udp_init, &udp_send, &udp_close } };
 
@@ -263,7 +263,7 @@ static int config(uint32_t width, uint32
 	}
 
 	framenum = 0;
-	if (format != IMGFMT_YV12) {
+	if (format != IMGFMT_Y8) {
 		mp_msg(MSGT_VO, MSGL_ERR, "vo_bl called with wrong format");
 		return 1;
 	}


More information about the MPlayer-cvslog mailing list