File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ AudioEncoder::AudioEncoder(
47
47
wf_.dtype () == torch::kFloat32 ,
48
48
" waveform must have float32 dtype, got " ,
49
49
wf_.dtype ());
50
+ // TODO-ENCODING check contiguity of the input wf to ensure that it is indeed
51
+ // planar (fltp).
50
52
TORCH_CHECK (
51
53
wf_.dim () == 2 , " waveform must have 2 dimensions, got " , wf_.dim ());
52
54
@@ -97,9 +99,6 @@ AudioEncoder::AudioEncoder(
97
99
// what the `.sample_fmt` defines.
98
100
avCodecContext_->sample_fmt = findOutputSampleFormat (*avCodec);
99
101
100
- // TODO-ENCODING check contiguity of the input wf to ensure that it is indeed
101
- // planar (fltp).
102
-
103
102
int numChannels = static_cast <int >(wf_.sizes ()[0 ]);
104
103
TORCH_CHECK (
105
104
// TODO-ENCODING is this even true / needed? We can probably support more
You can’t perform that action at this time.
0 commit comments