Commit 447e29e9 authored by Laurent Aimar's avatar Laurent Aimar Committed by Rémi Denis-Courmont

XCB/XVideo: fix resolution with non multiple of 16x16 videos

Fixes: #3928
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 7c9f25dd
...@@ -252,8 +252,8 @@ FindFormat (vout_display_t *vd, ...@@ -252,8 +252,8 @@ FindFormat (vout_display_t *vd,
continue; continue;
/* VLC pads scanline to 16 pixels internally */ /* VLC pads scanline to 16 pixels internally */
unsigned width = (fmt->i_width + 15) & ~15; unsigned width = fmt->i_width;
unsigned height = (fmt->i_height + 15) & ~15; unsigned height = fmt->i_height;
xcb_xv_query_image_attributes_reply_t *i; xcb_xv_query_image_attributes_reply_t *i;
i = xcb_xv_query_image_attributes_reply (conn, i = xcb_xv_query_image_attributes_reply (conn,
xcb_xv_query_image_attributes (conn, port, f->id, xcb_xv_query_image_attributes (conn, port, f->id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment