]> git.sesse.net Git - vlc/blobdiff - modules/video_output/xcb/xvideo.c
XCB/XVideo: fix resolution with non multiple of 16x16 videos
[vlc] / modules / video_output / xcb / xvideo.c
index 8b8190c96670b592992d3cf68cd5db981332b9e6..90097db293300d4eaa56d86bcd3d468472219ccf 100644 (file)
@@ -252,8 +252,8 @@ FindFormat (vout_display_t *vd,
             continue;
 
         /* VLC pads scanline to 16 pixels internally */
-        unsigned width = (fmt->i_width + 15) & ~15;
-        unsigned height = (fmt->i_height + 15) & ~15;
+        unsigned width = fmt->i_width;
+        unsigned height = fmt->i_height;
         xcb_xv_query_image_attributes_reply_t *i;
         i = xcb_xv_query_image_attributes_reply (conn,
             xcb_xv_query_image_attributes (conn, port, f->id,