From a00f342e8ab5469e9f4fd9abed39ddab1d060178 Mon Sep 17 00:00:00 2001 From: ProGamerGov Date: Mon, 30 Nov 2020 09:52:33 -0700 Subject: [PATCH 1/2] Fix spelling mistake: orignal -> original --- torchvision/io/_video_opt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torchvision/io/_video_opt.py b/torchvision/io/_video_opt.py index 347b367ab27..dbb31574fc1 100644 --- a/torchvision/io/_video_opt.py +++ b/torchvision/io/_video_opt.py @@ -193,7 +193,7 @@ def _read_video_from_file( video_width/video_height/video_min_dimension/video_max_dimension: int together decide the size of decoded frames - When video_width = 0, video_height = 0, video_min_dimension = 0, - and video_max_dimension = 0, keep the orignal frame resolution + and video_max_dimension = 0, keep the original frame resolution - When video_width = 0, video_height = 0, video_min_dimension != 0, and video_max_dimension = 0, keep the aspect ratio and resize the frame so that shorter edge size is video_min_dimension @@ -357,7 +357,7 @@ def _read_video_from_memory( video_width/video_height/video_min_dimension/video_max_dimension: int together decide the size of decoded frames - When video_width = 0, video_height = 0, video_min_dimension = 0, - and video_max_dimension = 0, keep the orignal frame resolution + and video_max_dimension = 0, keep the original frame resolution - When video_width = 0, video_height = 0, video_min_dimension != 0, and video_max_dimension = 0, keep the aspect ratio and resize the frame so that shorter edge size is video_min_dimension From 69d97a8b47feaefa44b19c8fb9787fd63215fe0f Mon Sep 17 00:00:00 2001 From: ProGamerGov Date: Mon, 30 Nov 2020 09:53:40 -0700 Subject: [PATCH 2/2] Spelling fix: orignal -> original --- torchvision/csrc/cpu/decoder/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/csrc/cpu/decoder/defs.h b/torchvision/csrc/cpu/decoder/defs.h index 495542b4f7c..7523969fd58 100644 --- a/torchvision/csrc/cpu/decoder/defs.h +++ b/torchvision/csrc/cpu/decoder/defs.h @@ -52,7 +52,7 @@ struct VideoFormat { } /* When width = 0, height = 0, minDimension = 0, and maxDimension = 0, - keep the orignal frame resolution + keep the original frame resolution When width = 0, height = 0, minDimension != 0, and maxDimension = 0, keep the aspect ratio and resize the frame so that shorter edge size is minDimension