From dc5a6c50c76279a6df62eaa5b668169d8d8cf3dc Mon Sep 17 00:00:00 2001 From: Molly Xu Date: Thu, 6 Nov 2025 12:28:57 -0800 Subject: [PATCH] std::move --- src/torchcodec/_core/SingleStreamDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torchcodec/_core/SingleStreamDecoder.cpp b/src/torchcodec/_core/SingleStreamDecoder.cpp index 72cd7afac..b30a4967d 100644 --- a/src/torchcodec/_core/SingleStreamDecoder.cpp +++ b/src/torchcodec/_core/SingleStreamDecoder.cpp @@ -1296,7 +1296,7 @@ FrameOutput SingleStreamDecoder::convertAVFrameToFrameOutput( getDuration(avFrame), formatContext_->streams[activeStreamIndex_]->time_base); deviceInterface_->convertAVFrameToFrameOutput( - avFrame, frameOutput, preAllocatedOutputTensor); + avFrame, frameOutput, std::move(preAllocatedOutputTensor)); return frameOutput; }