Issue #2101 - Part 5: Add ColorRange support to video decoders

This commit is contained in:
u3shit 2023-02-24 23:30:11 +01:00 committed by roytam1
commit e59e8c3b2c
5 changed files with 10 additions and 0 deletions

View file

@ -246,6 +246,8 @@ AOMDecoder::DoDecode(MediaRawData* aSample)
LOG("Unhandled colorspace %d", img->mc);
break;
}
b.mColorRange = img->range == AOM_CR_FULL_RANGE ? ColorRange::FULL
: ColorRange::LIMITED;
RefPtr<VideoData> v =
VideoData::CreateAndCopyData(mInfo,