fix: set yuv full range flag to 1 for VP9 with sRGB (#1398)

If color_space is VPX_COLOR_SPACE_SRGB, the specs says that color_range
should be 1 i.e. yuv_full_range = true. 

However, yuv_full_range was initialized as false and wasn't set in the branch for color_space
is VPX_COLOR_SPACE_SRGB.

Fixes #990

---------

Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
This commit is contained in:
Cosmin Stejerean 2024-05-10 17:41:30 -07:00 committed by GitHub
parent 98b44d01df
commit f6f60e5fff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ bool ReadBitDepthAndColorSpace(BitReader* reader,
} }
} else { } else {
// Assume 4:4:4 for colorspace SRGB. // Assume 4:4:4 for colorspace SRGB.
yuv_full_range = true;
chroma_subsampling = VPCodecConfigurationRecord::CHROMA_444; chroma_subsampling = VPCodecConfigurationRecord::CHROMA_444;
if (codec_config->profile() & 1) { if (codec_config->profile() & 1) {
bool reserved; bool reserved;