[vlc-devel] [PATCH 1/2] opengl: allocate the texture size using the visible dimensions of the format.
Felix Abecassis
felix.abecassis at gmail.com
Fri Jan 3 12:15:43 CET 2014
Removes a green line bug at the bottom of some videos.
---
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;
--
1.8.3.2
More information about the vlc-devel
mailing list