Skip to content

Commit

Permalink
[FBcode->GH] Use proper variable for tls key file for avformat options (
Browse files Browse the repository at this point in the history
#3374)

Summary:
Noticed this copy-paste error while reading D26026259 (f16322b) for inspiration to solve a similar problem

Created from Diffusion's 'Open in Editor' feature.

Reviewed By: datumbox

Differential Revision: D26373056

fbshipit-source-id: d67f46243a280e8a59d12bad9dd730c1a3d512c9
  • Loading branch information
datumbox authored Feb 11, 2021
1 parent 674e814 commit 5905de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/csrc/io/decoder/decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ bool Decoder::init(
av_dict_set(&options, "cert_file", params_.tlsCertFile.data(), 0);
}
if (!params_.tlsKeyFile.empty()) {
av_dict_set(&options, "key_file", params_.tlsCertFile.data(), 0);
av_dict_set(&options, "key_file", params_.tlsKeyFile.data(), 0);
}
}

Expand Down

0 comments on commit 5905de0

Please sign in to comment.