1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00

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.
This commit is contained in:
Niklas Haas 2016-09-13 04:00:00 +02:00 committed by wm4
parent 6a0df47d94
commit f7471b7ff4

View File

@ -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;
}
}