Skip to content

Commit 7d27c15

Browse files
mollyxuMolly Xu
andauthored
Remove unnecessary copy of preAllocatedOutputTensor (#1026)
Co-authored-by: Molly Xu <mollyxu@fb.com>
1 parent afd5aba commit 7d27c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/_core/SingleStreamDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ FrameOutput SingleStreamDecoder::convertAVFrameToFrameOutput(
12961296
getDuration(avFrame),
12971297
formatContext_->streams[activeStreamIndex_]->time_base);
12981298
deviceInterface_->convertAVFrameToFrameOutput(
1299-
avFrame, frameOutput, preAllocatedOutputTensor);
1299+
avFrame, frameOutput, std::move(preAllocatedOutputTensor));
13001300
return frameOutput;
13011301
}
13021302

0 commit comments

Comments
 (0)