Skip to content

Commit 0936577

Browse files
get9facebook-github-bot
authored andcommitted
Resolve torchvision + opencv version issues
Summary: Silence a warning about an unused variable that comes up when certain ffmpeg versions are used Differential Revision: D80843100
1 parent 7a936da commit 0936577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/csrc/io/decoder/audio_sampler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool AudioSampler::init(const SamplerParameters& params) {
5454
AVChannelLayout channel_in;
5555
av_channel_layout_default(&channel_out, params.out.audio.channels);
5656
av_channel_layout_default(&channel_in, params.in.audio.channels);
57-
int ret = swr_alloc_set_opts2(
57+
swr_alloc_set_opts2(
5858
&swrContext_,
5959
&channel_out,
6060
(AVSampleFormat)params.out.audio.format,

0 commit comments

Comments
 (0)