XCB: reject pixmap formats with unknown bit depth
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 17 Apr 2009 17:21:41 +0000 (20:21 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 17 Apr 2009 17:42:30 +0000 (20:42 +0300)
modules/video_output/xcb/x11.c

index 8cd8afe..375dfd2 100644 (file)
@@ -207,6 +207,8 @@ static int Open (vlc_object_t *obj)
             vout->output.i_chroma = gray ? VLC_FOURCC ('G', 'R', 'E', 'Y')
                                          : VLC_FOURCC ('R', 'G', 'B', '2');
             break;
+          default:
+            continue;
         }
         if ((fmt->bits_per_pixel << 4) % fmt->scanline_pad)
             continue; /* VLC pads lines to 16 pixels internally */