Commit af4dd740 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB-XVideo: pad picture height like VLC core

parent 985aec70
...@@ -254,14 +254,15 @@ FindFormat (vout_display_t *vd, ...@@ -254,14 +254,15 @@ FindFormat (vout_display_t *vd,
/* 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 + 15) & ~15;
unsigned height = (fmt->i_height + 15) & ~15;
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,
width, fmt->i_height), NULL); width, height), NULL);
if (i == NULL) if (i == NULL)
continue; continue;
if (i->width != width || i->height != fmt->i_height) if (i->width != width || i->height != height)
{ {
msg_Warn (vd, "incompatible size %ux%u -> %"PRIu32"x%"PRIu32, msg_Warn (vd, "incompatible size %ux%u -> %"PRIu32"x%"PRIu32,
fmt->i_width, fmt->i_height, fmt->i_width, fmt->i_height,
......
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