Skip to content

Commit 0c6e986

Browse files
committed
consistent names
1 parent 982979b commit 0c6e986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/torchcodec/_core/BetaCudaDeviceInterface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)