Skip to content

Commit 485ee2e

Browse files
committed
Move comment
1 parent ee3a199 commit 485ee2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/torchcodec/_core/Encoder.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ AudioEncoder::AudioEncoder(
4747
wf_.dtype() == torch::kFloat32,
4848
"waveform must have float32 dtype, got ",
4949
wf_.dtype());
50+
// TODO-ENCODING check contiguity of the input wf to ensure that it is indeed
51+
// planar (fltp).
5052
TORCH_CHECK(
5153
wf_.dim() == 2, "waveform must have 2 dimensions, got ", wf_.dim());
5254

@@ -97,9 +99,6 @@ AudioEncoder::AudioEncoder(
9799
// what the `.sample_fmt` defines.
98100
avCodecContext_->sample_fmt = findOutputSampleFormat(*avCodec);
99101

100-
// TODO-ENCODING check contiguity of the input wf to ensure that it is indeed
101-
// planar (fltp).
102-
103102
int numChannels = static_cast<int>(wf_.sizes()[0]);
104103
TORCH_CHECK(
105104
// TODO-ENCODING is this even true / needed? We can probably support more

0 commit comments

Comments
 (0)