From f7471b7ff48540a4184fb095e23b2c50d9720375 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 13 Sep 2016 04:00:00 +0200 Subject: 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. --- video/out/opengl/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') 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; } } -- cgit v1.2.3