@@ -1073,9 +1073,8 @@ VideoDecoder::BatchDecodedOutput VideoDecoder::getFramesInRange(
10731073 BatchDecodedOutput output (numOutputFrames, options, streamMetadata);
10741074
10751075 for (int64_t i = start, f = 0 ; i < stop; i += step, ++f) {
1076- auto preAllocatedOutputTensor = output.frames [f];
10771076 DecodedOutput singleOut =
1078- getFrameAtIndex (streamIndex, i, preAllocatedOutputTensor );
1077+ getFrameAtIndex (streamIndex, i, output. frames [f] );
10791078 output.ptsSeconds [f] = singleOut.ptsSeconds ;
10801079 output.durationSeconds [f] = singleOut.durationSeconds ;
10811080 }
@@ -1167,9 +1166,8 @@ VideoDecoder::getFramesDisplayedByTimestampInRange(
11671166 int64_t numFrames = stopFrameIndex - startFrameIndex;
11681167 BatchDecodedOutput output (numFrames, options, streamMetadata);
11691168 for (int64_t i = startFrameIndex, f = 0 ; i < stopFrameIndex; ++i, ++f) {
1170- auto preAllocatedOutputTensor = output.frames [f];
11711169 DecodedOutput singleOut =
1172- getFrameAtIndex (streamIndex, i, preAllocatedOutputTensor );
1170+ getFrameAtIndex (streamIndex, i, output. frames [f] );
11731171 output.ptsSeconds [f] = singleOut.ptsSeconds ;
11741172 output.durationSeconds [f] = singleOut.durationSeconds ;
11751173 }
0 commit comments