From 2d730f1fcc649e51e6d165d3c5da804b9c5c95c7 Mon Sep 17 00:00:00 2001 From: rik Date: Sun, 10 Jul 2005 12:35:43 +0000 Subject: --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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15953 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_bl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_bl.c b/libvo/vo_bl.c index e41874a8d9..527d16a080 100644 --- a/libvo/vo_bl.c +++ b/libvo/vo_bl.c @@ -220,10 +220,14 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, /* 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", -- cgit v1.2.3