[vlc-devel] commit: XCB-XVideo: pad picture height like VLC core ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Sep 20 17:32:51 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 20 18:28:00 2009 +0300| [af4dd74059a8f2dd584773f2c305841f2b3d052f] | committer: Rémi Denis-Courmont
XCB-XVideo: pad picture height like VLC core
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=af4dd74059a8f2dd584773f2c305841f2b3d052f
---
modules/video_output/xcb/xvideo.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index 36df393..09b2502 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -254,14 +254,15 @@ FindFormat (vout_display_t *vd,
/* VLC pads scanline to 16 pixels internally */
unsigned width = (fmt->i_width + 15) & ~15;
+ unsigned height = (fmt->i_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, port, f->id,
- width, fmt->i_height), NULL);
+ width, height), NULL);
if (i == NULL)
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,
fmt->i_width, fmt->i_height,
More information about the vlc-devel
mailing list