Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2023-02-27 12:15:12 +08:00
commit 7c0ddca067
280 changed files with 111730 additions and 37706 deletions

View file

@ -388,6 +388,11 @@ FFmpegVideoDecoder<LIBAV_VER>::CreateImage(int64_t aOffset, int64_t aPts,
break;
}
}
if (mLib->av_frame_get_color_range) {
auto range = mLib->av_frame_get_color_range(mFrame);
b.mColorRange = range == AVCOL_RANGE_JPEG ? ColorRange::FULL : ColorRange::LIMITED;
}
RefPtr<VideoData> v =
VideoData::CreateAndCopyData(mInfo,
mImageContainer,