[vlc-commits] commit: XCB/XVideo: fix resolution with non multiple of 16x16 videos ( Laurent Aimar )
git at videolan.org
git at videolan.org
Thu Aug 12 21:23:44 CEST 2010
vlc/vlc-1.1 | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Aug 12 22:19:22 2010 +0300| [7474f4b9afd5063cba2c0380fef724702f3f3b90] | committer: Rémi Denis-Courmont
XCB/XVideo: fix resolution with non multiple of 16x16 videos
Fixes: #3928
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 447e29e9d8ece04c0a3d0942a14f4e89af5c5314)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=7474f4b9afd5063cba2c0380fef724702f3f3b90
---
modules/video_output/xcb/xvideo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index 5b2b3e5..5582427 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -254,8 +254,8 @@ FindFormat (vout_display_t *vd,
continue;
/* VLC pads scanline to 16 pixels internally */
- unsigned width = (fmt->i_width + 15) & ~15;
- unsigned height = (fmt->i_height + 15) & ~15;
+ unsigned width = fmt->i_width;
+ unsigned height = fmt->i_height;
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,
More information about the vlc-commits
mailing list