diff options
author | Niklas Haas <git@haasn.xyz> | 2016-09-13 04:00:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-13 09:23:47 +0200 |
commit | f7471b7ff48540a4184fb095e23b2c50d9720375 (patch) | |
tree | 9a7a28e81b73e2bc2de41ea5f40509dd19a458c5 /video/out/opengl | |
parent | 6a0df47d9460ac7bf1b935b2e7285553b8f31180 (diff) |
vo_opengl: fix typo in bt.601 auto-guessing logic
The wrong enum got copied here, so it was essentially using the transfer
characteristics as the primaries (instead of the primaries), which
accidentally worked fine most of the time (since the two usually
coincided), but broke on weird/mistagged files.
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index c41aeb34cd..1399513897 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -2138,7 +2138,7 @@ static void pass_colormanage(struct gl_video *p, struct mp_colorspace src, bool // combined with the fact that they're very similar to begin with, // and to avoid confusing the average user, just don't adapt BT.601 // content automatically at all. - dst.primaries = ref.gamma; + dst.primaries = ref.primaries; } } |