From 447e29e9d8ece04c0a3d0942a14f4e89af5c5314 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Thu, 12 Aug 2010 22:19:22 +0300 Subject: [PATCH] XCB/XVideo: fix resolution with non multiple of 16x16 videos MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: #3928 Signed-off-by: Rémi Denis-Courmont --- modules/video_output/xcb/xvideo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.39.2