mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
--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
This commit is contained in:
parent
0b838da1fa
commit
2d730f1fcc
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user