summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorrik <rik@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-10 12:35:43 +0000
committerrik <rik@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-10 12:35:43 +0000
commit2d730f1fcc649e51e6d165d3c5da804b9c5c95c7 (patch)
tree1b465c0cbd525150fcdf245422ca5930a85379b9 /libvo
parent0b838da1fa3edc9d620de421f8b1a8f07a8d65c0 (diff)
downloadmpv-2d730f1fcc649e51e6d165d3c5da804b9c5c95c7.tar.bz2
mpv-2d730f1fcc649e51e6d165d3c5da804b9c5c95c7.tar.xz
--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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_bl.c8
1 files changed, 6 insertions, 2 deletions
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",