[MPlayer-cvslog] CVS: main/libvo vo_bl.c,1.10,1.11

Rik Snel CVS syncmail at mplayerhq.hu
Sun Jul 10 14:35:46 CEST 2005


CVS change done by Rik Snel CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv29616

Modified Files:
	vo_bl.c 
Log Message:
--Patch by Stefan '1stein' Schuermans <1stein at schuermans.info>:

the bugfix of the "grayscale" output scheme introduced a bug in the header
writer for the stream output, this patch corrects that


Index: vo_bl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_bl.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- vo_bl.c	18 Apr 2005 15:52:38 -0000	1.10
+++ vo_bl.c	10 Jul 2005 12:35:43 -0000	1.11
@@ -220,10 +220,14 @@
 
 	/* adapt size of Blinkenlights UDP stream to size of movie */
 	if (bl->width < 0 || bl->height < 0) {
-		if (bl->width < 0) /* use width of movie */
+		if (bl->width < 0) { /* use width of movie */
 			bl->width = width;
-		if (bl->height < 0) /* use height of movie */
+			bl_packet->width = htons(bl->width);
+		}
+		if (bl->height < 0) { /* use height of movie */
 			bl->height = height;
+			bl_packet->height = htons(bl->height);
+		}
 		/* check for maximum size of UDP packet */
 		if (12 + bl->width*bl->height*bl->channels > 65507) {
 			mp_msg(MSGT_VO, MSGL_ERR, "bl: %dx%d-%d does not fit into an UDP packet\n",




More information about the MPlayer-cvslog mailing list