We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da1796a commit 2ab9208Copy full SHA for 2ab9208
src/torchcodec/decoders/_core/VideoDecoder.cpp
@@ -1409,11 +1409,11 @@ UniqueAVFrame VideoDecoder::convertAudioAVFrameSampleFormat(
1409
convertedAVFrame,
1410
"Could not allocate frame for sample format conversion.");
1411
1412
- #if LIBAVFILTER_VERSION_MAJOR > 7 // FFmpeg > 4
+#if LIBAVFILTER_VERSION_MAJOR > 7 // FFmpeg > 4
1413
convertedAVFrame->ch_layout = avFrame->ch_layout;
1414
- #else
+#else
1415
convertedAVFrame->channel_layout = avFrame->channel_layout;
1416
- #endif
+#endif
1417
convertedAVFrame->format = static_cast<int>(desiredSampleFormat);
1418
convertedAVFrame->sample_rate = avFrame->sample_rate;
1419
convertedAVFrame->nb_samples = avFrame->nb_samples;
0 commit comments