Doing this in FFmpegVideoDecoder meant that the fallback to BT.709 with unspecified transfer characteristics was taking precedence. Instead of overriding unspecified to sRGB there, change the switch statement in ColorSpace::from_cicp() so that the unspecified fallback and override both live in the same place. This should fix the contrast on a lot of YouTube videos. Note that this now also affects images, which is consistent with Chromium. |
||
|---|---|---|
| .. | ||
| FFmpegAudioConverter.cpp | ||
| FFmpegAudioConverter.h | ||
| FFmpegAudioDecoder.cpp | ||
| FFmpegAudioDecoder.h | ||
| FFmpegDemuxer.cpp | ||
| FFmpegDemuxer.h | ||
| FFmpegForward.h | ||
| FFmpegHelpers.cpp | ||
| FFmpegHelpers.h | ||
| FFmpegIOContext.cpp | ||
| FFmpegIOContext.h | ||
| FFmpegVideoDecoder.cpp | ||
| FFmpegVideoDecoder.h | ||