summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStarsam80 <samraskauskas@gmail.com>2021-11-08 16:37:26 -0700
committerNiklas Haas <github-daiK1o@haasn.dev>2021-11-09 02:14:30 +0100
commit69527077c1a8be7b6c8cb2f7fc31b690e7722bab (patch)
tree610e4ceb291cef2e546605a1e9d5df95ebfa987d
parent4470eaf5e5caefc5c68440babb9b4e5b23c4627a (diff)
downloadmpv-69527077c1a8be7b6c8cb2f7fc31b690e7722bab.tar.bz2
mpv-69527077c1a8be7b6c8cb2f7fc31b690e7722bab.tar.xz
vo_gpu_next: Initialize `pl_frame_mix`
Without initializing, the random data causes the `pl_render_image_mix` function to abort with a SIGSEGV.
-rw-r--r--video/out/vo_gpu_next.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c
index c260af8865..4b3abf060e 100644
--- a/video/out/vo_gpu_next.c
+++ b/video/out/vo_gpu_next.c
@@ -679,7 +679,7 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
tbits->sample_depth = opts->dither_depth;
}
- struct pl_frame_mix mix;
+ struct pl_frame_mix mix = {0};
if (frame->current) {
// Update queue state
struct pl_queue_params qparams = {