[vlc-devel] [PATCH 1/4] xvideo: fix bottom green line
Rafaël Carré
funman at videolan.org
Mon Jan 27 14:23:44 CET 2014
refs: #9645
---
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 d7fe38a..564cb20 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -318,8 +318,8 @@ FindFormat (vlc_object_t *obj, xcb_connection_t *conn, video_format_t *fmt,
continue;
/* VLC pads scanline to 16 pixels internally */
- unsigned width = (fmt->i_width + 31) & ~31;
- unsigned height = (fmt->i_height + 15) & ~15;
+ unsigned width = (fmt->i_visible_width + 31) & ~31;
+ unsigned height = (fmt->i_visible_height + 15) & ~15;
xcb_xv_query_image_attributes_reply_t *i;
i = xcb_xv_query_image_attributes_reply (conn,
xcb_xv_query_image_attributes (conn, a->base_id, f->id,
--
1.8.5.3
More information about the vlc-devel
mailing list