Unverified Commit d98cccb0 authored by Zhiqiang Wang's avatar Zhiqiang Wang Committed by GitHub
Browse files

Fix typo in comments of video.cpp (#5092)

parent 9f48c627
...@@ -188,7 +188,7 @@ Video::Video(std::string videoPath, std::string stream, int64_t numThreads) { ...@@ -188,7 +188,7 @@ Video::Video(std::string videoPath, std::string stream, int64_t numThreads) {
c10::Dict<std::string, std::vector<double>> ccMetadata; c10::Dict<std::string, std::vector<double>> ccMetadata;
c10::Dict<std::string, std::vector<double>> subsMetadata; c10::Dict<std::string, std::vector<double>> subsMetadata;
// calback and metadata defined in struct // callback and metadata defined in struct
succeeded = decoder.init(params, std::move(callback), &metadata); succeeded = decoder.init(params, std::move(callback), &metadata);
if (succeeded) { if (succeeded) {
for (const auto& header : metadata) { for (const auto& header : metadata) {
...@@ -254,7 +254,7 @@ bool Video::setCurrentStream(std::string stream = "video") { ...@@ -254,7 +254,7 @@ bool Video::setCurrentStream(std::string stream = "video") {
numThreads_ // global number of threads numThreads_ // global number of threads
); );
// calback and metadata defined in Video.h // callback and metadata defined in Video.h
return (decoder.init(params, std::move(callback), &metadata)); return (decoder.init(params, std::move(callback), &metadata));
} }
...@@ -280,7 +280,7 @@ void Video::Seek(double ts, bool fastSeek = false) { ...@@ -280,7 +280,7 @@ void Video::Seek(double ts, bool fastSeek = false) {
numThreads_ // global number of threads numThreads_ // global number of threads
); );
// calback and metadata defined in Video.h // callback and metadata defined in Video.h
succeeded = decoder.init(params, std::move(callback), &metadata); succeeded = decoder.init(params, std::move(callback), &metadata);
LOG(INFO) << "Decoder init at seek " << succeeded << "\n"; LOG(INFO) << "Decoder init at seek " << succeeded << "\n";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment