Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/torchcodec/_core/FFMPEGCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const int* getSupportedSampleRates(const AVCodec& avCodec) {
&avCodec,
AV_CODEC_CONFIG_SAMPLE_RATE,
0,
reinterpret_cast<const void**> & supportedSampleRates,
reinterpret_cast<const void**>(&supportedSampleRates),
&numSampleRates);
if (ret < 0 || supportedSampleRates == nullptr) {
TORCH_CHECK(false, "Couldn't get supported sample rates from encoder.");
Expand All @@ -85,7 +85,7 @@ const AVSampleFormat* getSupportedOutputSampleFormats(const AVCodec& avCodec) {
&avCodec,
AV_CODEC_CONFIG_SAMPLE_FORMAT,
0,
reinterpret_cast<const void**> & supportedSampleFormats,
reinterpret_cast<const void**>(&supportedSampleFormats),
&numSampleFormats);
if (ret < 0 || supportedSampleFormats == nullptr) {
TORCH_CHECK(false, "Couldn't get supported sample formats from encoder.");
Expand Down Expand Up @@ -158,7 +158,7 @@ void validateNumChannels(const AVCodec& avCodec, int numChannels) {
&avCodec,
AV_CODEC_CONFIG_CHANNEL_LAYOUT,
0,
reinterpret_cast<const void**> & supported_layouts,
reinterpret_cast<const void**>(&supported_layouts),
&num_layouts);
if (ret < 0 || supported_layouts == nullptr) {
TORCH_CHECK(false, "Couldn't get supported channel layouts from encoder.");
Expand Down
Loading