mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
[551/906] GstGLOverlay: fix loading of non-square overlays
libjpeg complains about "Application read too {many,few} scan lines" in non-square images
This commit is contained in:
parent
b34d014918
commit
8ae1fd34e0
1 changed files with 1 additions and 1 deletions
|
@ -659,7 +659,7 @@ gst_gl_overlay_load_jpeg (GstGLFilter * filter)
|
||||||
overlay->format = GL_RGB;
|
overlay->format = GL_RGB;
|
||||||
overlay->pixbuf = (GLubyte *) malloc (sizeof (GLubyte) * overlay->width
|
overlay->pixbuf = (GLubyte *) malloc (sizeof (GLubyte) * overlay->width
|
||||||
* overlay->height * overlay->internalFormat);
|
* overlay->height * overlay->internalFormat);
|
||||||
for (i = 0; i < overlay->width; ++i) {
|
for (i = 0; i < overlay->height; ++i) {
|
||||||
j = (overlay->pixbuf +
|
j = (overlay->pixbuf +
|
||||||
(((int) overlay->height - (i +
|
(((int) overlay->height - (i +
|
||||||
1)) * (int) overlay->width * overlay->internalFormat));
|
1)) * (int) overlay->width * overlay->internalFormat));
|
||||||
|
|
Loading…
Reference in a new issue