summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-04-21 07:16:26 +0200
committerwm4 <wm4@nowhere>2017-04-21 07:16:26 +0200
commit4d1eab6e552681ef961ce48af74f6795e7077fc6 (patch)
tree6a60e4aa2c79a8159242fb5ea036aaf1c08e38c1 /video
parent51518ddcf6243b9d4bec2b80e208c80c6d6adad5 (diff)
downloadmpv-4d1eab6e552681ef961ce48af74f6795e7077fc6.tar.bz2
mpv-4d1eab6e552681ef961ce48af74f6795e7077fc6.tar.xz
vo_opengl: fix crash by coping temporal_dither_period for dumb mode too
Specifically, this field must never be 0 (and the option can naturally not be 0 in any way, unless it wasn't initialized correctly).
Diffstat (limited to 'video')
-rw-r--r--video/out/opengl/video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 251a3d4f8b..3189ec1ff3 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -3070,6 +3070,7 @@ static void check_gl_features(struct gl_video *p)
.dither_depth = p->opts.dither_depth,
.dither_size = p->opts.dither_size,
.temporal_dither = p->opts.temporal_dither,
+ .temporal_dither_period = p->opts.temporal_dither_period,
.tex_pad_x = p->opts.tex_pad_x,
.tex_pad_y = p->opts.tex_pad_y,
.target_brightness = p->opts.target_brightness,