[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:04 CEST 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Aug 12 22:19:22 2010 +0300| [447e29e9d8ece04c0a3d0942a14f4e89af5c5314] | 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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=447e29e9d8ece04c0a3d0942a14f4e89af5c5314
---
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 8b8190c..90097db 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -252,8 +252,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