Skip to content

Commit 9aa85c2

Browse files
committed
Lint
1 parent a032cb7 commit 9aa85c2

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/torchcodec/_core/CpuDeviceInterface.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,9 @@ void CpuDeviceInterface::convertAVFrameToFrameOutput(
169169
outputDims_.width,
170170
outputDims_.height);
171171

172-
173172
outputTensor = preAllocatedOutputTensor.value_or(
174173
allocateEmptyHWCTensor(outputDims_, torch::kCPU));
175174

176-
177175
if (!swsContext_ || prevSwsFrameContext_ != swsFrameContext) {
178176
createSwsContext(swsFrameContext, avFrame->colorspace);
179177
prevSwsFrameContext_ = swsFrameContext;

src/torchcodec/_core/CudaDeviceInterface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ void CudaDeviceInterface::convertAVFrameToFrameOutput(
230230
nullptr, VideoStreamOptions(), {}, timeBase_, outputDims_);
231231

232232
FrameOutput cpuFrameOutput;
233-
cpuInterface->convertAVFrameToFrameOutput(
234-
avFrame, cpuFrameOutput);
233+
cpuInterface->convertAVFrameToFrameOutput(avFrame, cpuFrameOutput);
235234

236235
// TODO: explain that the pre-allocated tensor is on the GPU, but we need
237236
// to do the decoding on the CPU, and we can't pass the pre-allocated tensor

0 commit comments

Comments
 (0)