Skip to content

Commit f72e39a

Browse files
authored
Reorder inits to match declaration (#279)
1 parent c91e33e commit f72e39a

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
@@ -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

203203
VideoDecoder::VideoDecoder() {}
204204

0 commit comments

Comments
 (0)