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 061c60f commit 9b90894Copy full SHA for 9b90894
src/torchcodec/_core/Encoder.cpp
@@ -126,7 +126,7 @@ void AudioEncoder::encode() {
126
int numSamples = static_cast<int>(wf_.sizes()[1]); // per channel
127
int numEncodedSamples = 0; // per channel
128
int numSamplesPerFrame = avCodecContext_->frame_size; // per channel
129
- int numBytesPerSample = wf_.element_size();
+ int numBytesPerSample = static_cast<int>(wf_.element_size());
130
int numBytesPerChannel = numSamples * numBytesPerSample;
131
132
status = avformat_write_header(avFormatContext_.get(), nullptr);
0 commit comments