]> git.sesse.net Git - vlc/commitdiff
XCB/XVideo: fix resolution with non multiple of 16x16 videos
authorLaurent Aimar <fenrir@videolan.org>
Thu, 12 Aug 2010 19:19:22 +0000 (22:19 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 12 Aug 2010 19:22:26 +0000 (22:22 +0300)
Fixes: #3928
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
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,