File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
torchvision/csrc/io/decoder Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -420,20 +420,20 @@ bool Decoder::openStreams(std::vector<DecoderMetadata>* metadata) {
420420 if (it->stream == -2 || // all streams of this type are welcome
421421 (!stream && (it->stream == -1 || it->stream == i))) { // new stream
422422 VLOG (1 ) << " Stream type: " << format.type << " found, at index: " << i;
423- auto stream = createStream (
423+ auto stream_2 = createStream (
424424 format.type ,
425425 inputCtx_,
426426 i,
427427 params_.convertPtsToWallTime ,
428428 it->format ,
429429 params_.loggingUuid );
430- CHECK (stream );
431- if (stream ->openCodec (metadata, params_.numThreads ) < 0 ) {
430+ CHECK (stream_2 );
431+ if (stream_2 ->openCodec (metadata, params_.numThreads ) < 0 ) {
432432 LOG (ERROR) << " uuid=" << params_.loggingUuid
433433 << " open codec failed, stream_idx=" << i;
434434 return false ;
435435 }
436- streams_.emplace (i, std::move (stream ));
436+ streams_.emplace (i, std::move (stream_2 ));
437437 inRange_.set (i, true );
438438 }
439439 }
You can’t perform that action at this time.
0 commit comments