File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -191,14 +191,14 @@ VideoDecoder::BatchDecodedOutput::BatchDecodedOutput(
191191 int64_t numFrames,
192192 const VideoStreamDecoderOptions& options,
193193 const StreamMetadata& metadata)
194- : ptsSeconds(torch::empty({numFrames}, {torch::kFloat64 })),
195- durationSeconds (torch::empty({numFrames}, {torch::kFloat64 })),
196- frames (torch::empty(
194+ : frames(torch::empty(
197195 {numFrames,
198196 options.height .value_or (*metadata.height ),
199197 options.width .value_or (*metadata.width ),
200198 3 },
201- {torch::kUInt8 })) {}
199+ {torch::kUInt8 })),
200+ ptsSeconds (torch::empty({numFrames}, {torch::kFloat64 })),
201+ durationSeconds (torch::empty({numFrames}, {torch::kFloat64 })) {}
202202
203203VideoDecoder::VideoDecoder () {}
204204
You can’t perform that action at this time.
0 commit comments