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 d5b4ec8 commit 07287d5Copy full SHA for 07287d5
src/torchcodec/decoders/_core/VideoDecoder.cpp
@@ -1430,7 +1430,7 @@ UniqueAVFrame VideoDecoder::convertAudioAVFrameSampleFormat(
1430
streamInfo.swrContext.get(),
1431
convertedAVFrame->data,
1432
convertedAVFrame->nb_samples,
1433
- (const uint8_t**)(avFrame->data),
+ static_cast<const uint8_t**>(const_cast<const uint8_t**>(avFrame->data)),
1434
avFrame->nb_samples);
1435
TORCH_CHECK(
1436
numSampleConverted > 0,
@@ -1678,7 +1678,6 @@ void VideoDecoder::createSwrContext(
1678
int sampleRate,
1679
AVSampleFormat sourceSampleFormat,
1680
AVSampleFormat desiredSampleFormat) {
1681
-
1682
auto swrContext = allocateSwrContext(
1683
streamInfo.codecContext,
1684
sampleRate,
0 commit comments