changeset 36496:cf65ac6b4842

Do not needlessly request chroma. In addition to avoid wasting CPU time, this potentially avoids issues with odd-sized resolutions.
author reimar
date Sat, 18 Jan 2014 11:59:59 +0000
parents 211cb1950419
children dabe5bcfc2e2
files libvo/vo_bl.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_bl.c	Sat Jan 18 11:58:13 2014 +0000
+++ b/libvo/vo_bl.c	Sat Jan 18 11:59:59 2014 +0000
@@ -212,13 +212,13 @@
 #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 @@
 	}
 
 	framenum = 0;
-	if (format != IMGFMT_YV12) {
+	if (format != IMGFMT_Y8) {
 		mp_msg(MSGT_VO, MSGL_ERR, "vo_bl called with wrong format");
 		return 1;
 	}