From 16cd12a09550549a0760bdac78ebd9e5e5b10c32 Mon Sep 17 00:00:00 2001 From: Scott Schneider Date: Mon, 16 Dec 2024 16:24:49 -0800 Subject: [PATCH] Removed unused variables. --- src/torchcodec/decoders/_core/VideoDecoder.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/torchcodec/decoders/_core/VideoDecoder.cpp b/src/torchcodec/decoders/_core/VideoDecoder.cpp index 3a7927d1..5fa7a872 100644 --- a/src/torchcodec/decoders/_core/VideoDecoder.cpp +++ b/src/torchcodec/decoders/_core/VideoDecoder.cpp @@ -1414,15 +1414,11 @@ int VideoDecoder::convertFrameToTensorUsingSwsScale( int streamIndex, const AVFrame* frame, torch::Tensor& outputTensor) { - enum AVPixelFormat frameFormat = - static_cast(frame->format); StreamInfo& activeStream = streams_[streamIndex]; - - int expectedOutputHeight = outputTensor.sizes()[0]; - int expectedOutputWidth = outputTensor.sizes()[1]; SwsContext* swsContext = activeStream.swsContext.get(); uint8_t* pointers[4] = { outputTensor.data_ptr(), nullptr, nullptr, nullptr}; + int expectedOutputWidth = outputTensor.sizes()[1]; int linesizes[4] = {expectedOutputWidth * 3, 0, 0, 0}; int resultHeight = sws_scale( swsContext,