# HG changeset patch # User rik # Date 1120998943 0 # Node ID 7a33ae1f8e6dd45a9a6c18ef2bf67d3628b09bee # Parent 137f825e58c2d2bad71ce0e4d07841567243dbc4 --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 diff -r 137f825e58c2 -r 7a33ae1f8e6d libvo/vo_bl.c --- 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",