File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ static UniqueCUvideodecoder createDecoder(CUVIDEOFORMAT* videoFormat) {
9595 return UniqueCUvideodecoder (decoder, CUvideoDecoderDeleter{});
9696}
9797
98- std::optional<cudaVideoChromaFormat> mapChromaFormat (
98+ std::optional<cudaVideoChromaFormat> validateChromaSupport (
9999 const AVPixFmtDescriptor* desc) {
100100 // Return the corresponding cudaVideoChromaFormat if supported, std::nullopt
101101 // otherwise.
@@ -165,7 +165,7 @@ bool nativeNVDECSupport(const SharedAVCodecContext& codecContext) {
165165 return false ;
166166 }
167167
168- auto chromaFormat = mapChromaFormat (desc);
168+ auto chromaFormat = validateChromaSupport (desc);
169169 if (!chromaFormat.has_value ()) {
170170 return false ;
171171 }
You can’t perform that action at this time.
0 commit comments