From 0ce8f5e147337306b7b7176ff9786188d40172ce Mon Sep 17 00:00:00 2001 From: Zhiqiang Wang Date: Tue, 14 Dec 2021 02:33:42 +0800 Subject: [PATCH] Fix typo in video.cpp --- torchvision/csrc/io/video/video.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/torchvision/csrc/io/video/video.cpp b/torchvision/csrc/io/video/video.cpp index d5a24398694..53a177fdb1e 100644 --- a/torchvision/csrc/io/video/video.cpp +++ b/torchvision/csrc/io/video/video.cpp @@ -188,7 +188,7 @@ Video::Video(std::string videoPath, std::string stream, int64_t numThreads) { c10::Dict> ccMetadata; c10::Dict> subsMetadata; - // calback and metadata defined in struct + // callback and metadata defined in struct succeeded = decoder.init(params, std::move(callback), &metadata); if (succeeded) { for (const auto& header : metadata) { @@ -254,7 +254,7 @@ bool Video::setCurrentStream(std::string stream = "video") { 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)); } @@ -280,7 +280,7 @@ void Video::Seek(double ts, bool fastSeek = false) { 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); LOG(INFO) << "Decoder init at seek " << succeeded << "\n"; }