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

XCB/XVideo: pad pictures to 32x16

This reenables direct rendering with libavcodec in most cases.
parent a8db64a5
...@@ -318,8 +318,8 @@ FindFormat (vlc_object_t *obj, xcb_connection_t *conn, video_format_t *fmt, ...@@ -318,8 +318,8 @@ FindFormat (vlc_object_t *obj, xcb_connection_t *conn, video_format_t *fmt,
continue; continue;
/* VLC pads scanline to 16 pixels internally */ /* VLC pads scanline to 16 pixels internally */
unsigned width = fmt->i_width; unsigned width = (fmt->i_width + 31) & ~31;
unsigned height = fmt->i_height; 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, a->base_id, f->id, xcb_xv_query_image_attributes (conn, a->base_id, 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