From: Laurent Aimar Date: Thu, 12 Aug 2010 19:19:22 +0000 (+0300) Subject: XCB/XVideo: fix resolution with non multiple of 16x16 videos X-Git-Tag: 1.2.0-pre1~5443 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=447e29e9d8ece04c0a3d0942a14f4e89af5c5314;p=vlc XCB/XVideo: fix resolution with non multiple of 16x16 videos Fixes: #3928 Signed-off-by: RĂ©mi Denis-Courmont --- diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c index 8b8190c966..90097db293 100644 --- a/modules/video_output/xcb/xvideo.c +++ b/modules/video_output/xcb/xvideo.c @@ -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,