Skip to content

Commit eb1773a

Browse files
committed
more
1 parent a1805d1 commit eb1773a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ VideoDecoder::FrameOutput VideoDecoder::convertAVFrameToFrameOutput(
963963
// `dimension_order` parameter. It's up to callers to re-shape it if needed.
964964
void VideoDecoder::convertAVFrameToFrameOutputOnCPU(
965965
VideoDecoder::AVFrameWithStreamIndex& avFrameWithStreamIndex,
966-
FrameOutput& output,
966+
FrameOutput& frameOutput,
967967
std::optional<torch::Tensor> preAllocatedOutputTensor) {
968968
int streamIndex = avFrameWithStreamIndex.streamIndex;
969969
AVFrame* avFrame = avFrameWithStreamIndex.avFrame.get();
@@ -1024,7 +1024,7 @@ void VideoDecoder::convertAVFrameToFrameOutputOnCPU(
10241024
" != ",
10251025
expectedOutputHeight);
10261026

1027-
output.data = outputTensor;
1027+
frameOutput.data = outputTensor;
10281028
} else if (
10291029
streamInfo.colorConversionLibrary ==
10301030
ColorConversionLibrary::FILTERGRAPH) {
@@ -1052,9 +1052,9 @@ void VideoDecoder::convertAVFrameToFrameOutputOnCPU(
10521052
// We have already validated that preAllocatedOutputTensor and
10531053
// outputTensor have the same shape.
10541054
preAllocatedOutputTensor.value().copy_(outputTensor);
1055-
output.data = preAllocatedOutputTensor.value();
1055+
frameOutput.data = preAllocatedOutputTensor.value();
10561056
} else {
1057-
output.data = outputTensor;
1057+
frameOutput.data = outputTensor;
10581058
}
10591059
} else {
10601060
throw std::runtime_error(

0 commit comments

Comments
 (0)