summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-04 01:20:11 +0100
committerwm4 <wm4@nowhere>2013-11-04 01:20:11 +0100
commit5b6eab01af32cdf886f0ae9fc1c50e3aa1584da2 (patch)
treefdac9705a5e99b36f26129ae6eb07dfa8ca746c7 /video
parent25affdcc886ce010995804553396d81d90a321d3 (diff)
downloadmpv-5b6eab01af32cdf886f0ae9fc1c50e3aa1584da2.tar.bz2
mpv-5b6eab01af32cdf886f0ae9fc1c50e3aa1584da2.tar.xz
vo_opengl: fix use of uninitialized memory
Pretty bad, although it should actually not cause any misbehavior. Comes from the hardware decoding interop commit.
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index b376fead36..b2aaed690c 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1204,7 +1204,7 @@ static void set_image_textures(struct gl_video *p, struct video_image *vimg,
GLuint imgtex[4])
{
GL *gl = p->gl;
- GLuint dummy[4];
+ GLuint dummy[4] = {0};
if (!imgtex)
imgtex = dummy;