Skip to content

Commit 9b90894

Browse files
committed
cast
1 parent 061c60f commit 9b90894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/_core/Encoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void AudioEncoder::encode() {
126126
int numSamples = static_cast<int>(wf_.sizes()[1]); // per channel
127127
int numEncodedSamples = 0; // per channel
128128
int numSamplesPerFrame = avCodecContext_->frame_size; // per channel
129-
int numBytesPerSample = wf_.element_size();
129+
int numBytesPerSample = static_cast<int>(wf_.element_size());
130130
int numBytesPerChannel = numSamples * numBytesPerSample;
131131

132132
status = avformat_write_header(avFormatContext_.get(), nullptr);

0 commit comments

Comments
 (0)