[vlc-commits] opengl: allocate the texture size using the visible dimensions of the format.
Felix Abecassis
git at videolan.org
Fri Jan 3 12:23:07 CET 2014
vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Fri Jan 3 12:15:43 2014 +0100| [ab997f4545e1aaa58bb4f6089e6a399f01baba03] | committer: Jean-Baptiste Kempf
opengl: allocate the texture size using the visible dimensions of the format.
Removes a green line bug at the bottom of some videos.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab997f4545e1aaa58bb4f6089e6a399f01baba03
---
modules/video_output/opengl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 030183d..a4c9d2e 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -565,8 +565,8 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
/* Texture size */
for (unsigned j = 0; j < vgl->chroma->plane_count; j++) {
- int w = vgl->fmt.i_width * vgl->chroma->p[j].w.num / vgl->chroma->p[j].w.den;
- int h = vgl->fmt.i_height * vgl->chroma->p[j].h.num / vgl->chroma->p[j].h.den;
+ int w = vgl->fmt.i_visible_width * vgl->chroma->p[j].w.num / vgl->chroma->p[j].w.den;
+ int h = vgl->fmt.i_visible_height * vgl->chroma->p[j].h.num / vgl->chroma->p[j].h.den;
if (vgl->supports_npot) {
vgl->tex_width[j] = w;
vgl->tex_height[j] = h;
More information about the vlc-commits
mailing list