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; }