Skip to content

Commit

Permalink
Removed unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
scotts committed Dec 17, 2024
1 parent 04af57f commit 3a97557
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/torchcodec/decoders/_core/VideoDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1414,11 +1414,8 @@ int VideoDecoder::convertFrameToTensorUsingSwsScale(
int streamIndex,
const AVFrame* frame,
torch::Tensor& outputTensor) {
enum AVPixelFormat frameFormat =
static_cast<enum AVPixelFormat>(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] = {
Expand Down

0 comments on commit 3a97557

Please sign in to comment.