Commit 2aa19440 authored by Erwan Croze's avatar Erwan Croze 👋🏻
Browse files

Fix issue with size of video in Opengl

parent d0893a42
......@@ -552,8 +552,9 @@ static bool_t update_textures_with_yuv(struct opengles_display* gldisp, enum Ima
allocate_gl_textures(gldisp, aligned_yuv_w, aligned_yuv_h, type);
}
gldisp->uvx[type] = yuvbuf.w / (float)(gldisp->allocatedTexturesSize[type].width);
gldisp->uvy[type] = yuvbuf.h / (float)(gldisp->allocatedTexturesSize[type].height);
/* We must add 2 to width and height due to a precision issue with the division */
gldisp->uvx[type] = yuvbuf.w / (float)(gldisp->allocatedTexturesSize[type].width + 2);
gldisp->uvy[type] = yuvbuf.h / (float)(gldisp->allocatedTexturesSize[type].height + 2);
/* alignment of pointers and datasize */
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment