changeset 15952:7a33ae1f8e6d

--Patch by Stefan '1stein' Schuermans <1stein@schuermans.info>: the bugfix of the "grayscale" output scheme introduced a bug in the header writer for the stream output, this patch corrects that
author rik
date Sun, 10 Jul 2005 12:35:43 +0000
parents 137f825e58c2
children 507ed764f0ef
files libvo/vo_bl.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_bl.c	Sun Jul 10 09:20:57 2005 +0000
+++ b/libvo/vo_bl.c	Sun Jul 10 12:35:43 2005 +0000
@@ -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",