Skip to content

Commit 91df09a

Browse files
committed
Update comment
1 parent 6d83114 commit 91df09a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,9 @@ VideoDecoder::DecodedOutput VideoDecoder::convertAVFrameToDecodedOutput(
894894
// Callers may pass a pre-allocated tensor, where the output frame tensor will
895895
// be stored. This parameter is honored in any case, but it only leads to a
896896
// speed-up when swscale is used. With swscale, we can tell ffmpeg to place the
897-
// decoded frame directly into `preAllocatedtensor.data_ptr()`. That's not
898-
// possible with filtegraph, leading to an extra copy.
897+
// decoded frame directly into `preAllocatedtensor.data_ptr()`. We haven't yet
898+
// found a way to do that with filtegraph.
899+
// TODO: Figure out whether that's possilbe!
899900
// Dimension order of the preAllocatedOutputTensor must be HWC, regardless of
900901
// `dimension_order` parameter. It's up to callers to re-shape it if needed.
901902
void VideoDecoder::convertAVFrameToDecodedOutputOnCPU(

0 commit comments

Comments
 (0)