Skip to content

Commit 23ec35f

Browse files
committed
Better comment
1 parent 7813005 commit 23ec35f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/torchcodec/_core/CpuDeviceInterface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class CpuDeviceInterface : public DeviceInterface {
7272
std::optional<FrameDims> resizedOutputDims_;
7373

7474
// Color-conversion objects. Only one of filterGraph_ and swsContext_ should
75-
// be non-null. Which one we use is controlled by colorConversionLibrary_.
75+
// be non-null. Which one we use is determined dynamically in
76+
// getColorConversionLibrary() each time we decode a frame.
7677
//
7778
// Creating both filterGraph_ and swsContext_ is relatively expensive, so we
7879
// reuse them across frames. However, it is possbile that subsequent frames

0 commit comments

Comments
 (0)