Commit 96bc1b6f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: reject pixmap formats with unknown bit depth

parent 07d5700d
...@@ -207,6 +207,8 @@ static int Open (vlc_object_t *obj) ...@@ -207,6 +207,8 @@ static int Open (vlc_object_t *obj)
vout->output.i_chroma = gray ? VLC_FOURCC ('G', 'R', 'E', 'Y') vout->output.i_chroma = gray ? VLC_FOURCC ('G', 'R', 'E', 'Y')
: VLC_FOURCC ('R', 'G', 'B', '2'); : VLC_FOURCC ('R', 'G', 'B', '2');
break; break;
default:
continue;
} }
if ((fmt->bits_per_pixel << 4) % fmt->scanline_pad) if ((fmt->bits_per_pixel << 4) % fmt->scanline_pad)
continue; /* VLC pads lines to 16 pixels internally */ continue; /* VLC pads lines to 16 pixels internally */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment