We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 968b30f commit cbfba11Copy full SHA for cbfba11
src/torchcodec/_core/Encoder.cpp
@@ -195,9 +195,6 @@ void AudioEncoder::initializeEncoder(
195
// which is what the `.sample_fmt` defines.
196
avCodecContext_->sample_fmt = findBestOutputSampleFormat(*avCodec);
197
198
- setDefaultChannelLayout(
199
- avCodecContext_, static_cast<int>(samples_.sizes()[0]));
200
-
201
int status = avcodec_open2(avCodecContext_.get(), avCodec, nullptr);
202
TORCH_CHECK(
203
status == AVSUCCESS,
0 commit comments