Skip to content

Commit 0cba8b3

Browse files
author
pytorchbot
committed
2025-09-20 nightly release (8c05c6e)
1 parent 3acf49e commit 0cba8b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/torchcodec/_core/FFMPEGCommon.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const int* getSupportedSampleRates(const AVCodec& avCodec) {
6565
&avCodec,
6666
AV_CODEC_CONFIG_SAMPLE_RATE,
6767
0,
68-
reinterpret_cast<const void**> & supportedSampleRates,
68+
reinterpret_cast<const void**>(&supportedSampleRates),
6969
&numSampleRates);
7070
if (ret < 0 || supportedSampleRates == nullptr) {
7171
TORCH_CHECK(false, "Couldn't get supported sample rates from encoder.");
@@ -85,7 +85,7 @@ const AVSampleFormat* getSupportedOutputSampleFormats(const AVCodec& avCodec) {
8585
&avCodec,
8686
AV_CODEC_CONFIG_SAMPLE_FORMAT,
8787
0,
88-
reinterpret_cast<const void**> & supportedSampleFormats,
88+
reinterpret_cast<const void**>(&supportedSampleFormats),
8989
&numSampleFormats);
9090
if (ret < 0 || supportedSampleFormats == nullptr) {
9191
TORCH_CHECK(false, "Couldn't get supported sample formats from encoder.");
@@ -158,7 +158,7 @@ void validateNumChannels(const AVCodec& avCodec, int numChannels) {
158158
&avCodec,
159159
AV_CODEC_CONFIG_CHANNEL_LAYOUT,
160160
0,
161-
reinterpret_cast<const void**> & supported_layouts,
161+
reinterpret_cast<const void**>(&supported_layouts),
162162
&num_layouts);
163163
if (ret < 0 || supported_layouts == nullptr) {
164164
TORCH_CHECK(false, "Couldn't get supported channel layouts from encoder.");

0 commit comments

Comments
 (0)