From 0ec92750187827818e2b8e1a392a420c36b9a277 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Fri, 19 Sep 2025 11:22:41 -0400 Subject: [PATCH] Add parenthesis to reinterpret_cast --- src/torchcodec/_core/FFMPEGCommon.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.");