diff options
author | Niklas Haas <git@haasn.xyz> | 2019-01-09 17:14:19 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-02-18 01:54:06 +0200 |
commit | 8b563a034604ff5ab2ad92d12c63e806f45d1bb6 (patch) | |
tree | f76d54bf75583cb17e81a104c94b43407c1738c7 /video/out/gpu/video.c | |
parent | 3f1bc25d4de6150b0acff7e92d3e3084a7d989f0 (diff) | |
download | mpv-8b563a034604ff5ab2ad92d12c63e806f45d1bb6.tar.bz2 mpv-8b563a034604ff5ab2ad92d12c63e806f45d1bb6.tar.xz |
vo_gpu: fix initial seeding of the peak detect ssbo
This solves some edge cases when using files with very weird metadata
(e.g. MaxCLL 10k and so forth). Instead of just blindly seeding it with
the tagged metadata, forcibly set the initial state from the detected
values.
Diffstat (limited to 'video/out/gpu/video.c')
-rw-r--r-- | video/out/gpu/video.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 24e6990139..593f5fb9c1 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -2499,9 +2499,7 @@ static void pass_colormanage(struct gl_video *p, struct mp_colorspace src, bool int32_t frame_sum; uint32_t frame_max; uint32_t counter; - } peak_ssbo = { - .average = { 0.25, src.sig_peak }, - }; + } peak_ssbo = {0}; struct ra_buf_params params = { .type = RA_BUF_TYPE_SHADER_STORAGE, |