Skip to content

Commit 39463b8

Browse files
authored
[codemod] Remove unused-variable in /fbcode/pytorch/torchcodec/src/torchcodec/decoders/_core/VideoDecoder.cpp
Differential Revision: D65445691 Pull Request resolved: #334
1 parent 373d1c5 commit 39463b8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -833,10 +833,6 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getDecodedOutputWithFilter(
833833
StreamInfo& activeStream = streams_[frameStreamIndex];
834834
activeStream.currentPts = frame->pts;
835835
activeStream.currentDuration = getDuration(frame);
836-
auto startToSeekDone =
837-
std::chrono::duration_cast<std::chrono::milliseconds>(seekDone - start);
838-
auto seekToDecodeDone = std::chrono::duration_cast<std::chrono::milliseconds>(
839-
decodeDone - seekDone);
840836
RawDecodedOutput rawOutput;
841837
rawOutput.streamIndex = frameStreamIndex;
842838
rawOutput.frame = std::move(frame);
@@ -1395,7 +1391,6 @@ torch::Tensor VideoDecoder::convertFrameToTensorUsingFilterGraph(
13951391
};
13961392
torch::Tensor tensor = torch::from_blob(
13971393
filteredFramePtr->data[0], shape, strides, deleter, {torch::kUInt8});
1398-
StreamInfo& activeStream = streams_[streamIndex];
13991394
return tensor;
14001395
}
14011396

0 commit comments

Comments
 (0)