@@ -65,7 +65,7 @@ const int* getSupportedSampleRates(const AVCodec& avCodec) {
65
65
&avCodec,
66
66
AV_CODEC_CONFIG_SAMPLE_RATE,
67
67
0 ,
68
- reinterpret_cast <const void **> & supportedSampleRates,
68
+ reinterpret_cast <const void **>(& supportedSampleRates) ,
69
69
&numSampleRates);
70
70
if (ret < 0 || supportedSampleRates == nullptr ) {
71
71
TORCH_CHECK (false , " Couldn't get supported sample rates from encoder." );
@@ -85,7 +85,7 @@ const AVSampleFormat* getSupportedOutputSampleFormats(const AVCodec& avCodec) {
85
85
&avCodec,
86
86
AV_CODEC_CONFIG_SAMPLE_FORMAT,
87
87
0 ,
88
- reinterpret_cast <const void **> & supportedSampleFormats,
88
+ reinterpret_cast <const void **>(& supportedSampleFormats) ,
89
89
&numSampleFormats);
90
90
if (ret < 0 || supportedSampleFormats == nullptr ) {
91
91
TORCH_CHECK (false , " Couldn't get supported sample formats from encoder." );
@@ -158,7 +158,7 @@ void validateNumChannels(const AVCodec& avCodec, int numChannels) {
158
158
&avCodec,
159
159
AV_CODEC_CONFIG_CHANNEL_LAYOUT,
160
160
0 ,
161
- reinterpret_cast <const void **> & supported_layouts,
161
+ reinterpret_cast <const void **>(& supported_layouts) ,
162
162
&num_layouts);
163
163
if (ret < 0 || supported_layouts == nullptr ) {
164
164
TORCH_CHECK (false , " Couldn't get supported channel layouts from encoder." );
0 commit comments