Skip to content

Commit 5e54c64

Browse files
authored
Use nullptr instead of NULL (#763)
1 parent eb51e0e commit 5e54c64

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
@@ -478,7 +478,7 @@ void AudioEncoder::maybeFlushSwrBuffers(AutoAVPacket& autoAVPacket) {
478478
outNumChannels_,
479479
avCodecContext_->sample_fmt);
480480
int actualNumRemainingSamples = swr_convert(
481-
swrContext_.get(), avFrame->data, avFrame->nb_samples, NULL, 0);
481+
swrContext_.get(), avFrame->data, avFrame->nb_samples, nullptr, 0);
482482
avFrame->nb_samples = actualNumRemainingSamples;
483483

484484
// We're potentially sending avFrame through the FIFO (if it exists), in which

0 commit comments

Comments
 (0)