diff --git a/src/torchcodec/_core/FFMPEGCommon.cpp b/src/torchcodec/_core/FFMPEGCommon.cpp index f0143ddd3..a221d28f9 100644 --- a/src/torchcodec/_core/FFMPEGCommon.cpp +++ b/src/torchcodec/_core/FFMPEGCommon.cpp @@ -65,7 +65,7 @@ const int* getSupportedSampleRates(const AVCodec& avCodec) { &avCodec, AV_CODEC_CONFIG_SAMPLE_RATE, 0, - reinterpret_cast & supportedSampleRates, + reinterpret_cast(&supportedSampleRates), &numSampleRates); if (ret < 0 || supportedSampleRates == nullptr) { TORCH_CHECK(false, "Couldn't get supported sample rates from encoder."); @@ -85,7 +85,7 @@ const AVSampleFormat* getSupportedOutputSampleFormats(const AVCodec& avCodec) { &avCodec, AV_CODEC_CONFIG_SAMPLE_FORMAT, 0, - reinterpret_cast & supportedSampleFormats, + reinterpret_cast(&supportedSampleFormats), &numSampleFormats); if (ret < 0 || supportedSampleFormats == nullptr) { TORCH_CHECK(false, "Couldn't get supported sample formats from encoder."); @@ -158,7 +158,7 @@ void validateNumChannels(const AVCodec& avCodec, int numChannels) { &avCodec, AV_CODEC_CONFIG_CHANNEL_LAYOUT, 0, - reinterpret_cast & supported_layouts, + reinterpret_cast(&supported_layouts), &num_layouts); if (ret < 0 || supported_layouts == nullptr) { TORCH_CHECK(false, "Couldn't get supported channel layouts from encoder.");