Skip to content

Commit

Permalink
Fix spelling mistake: orignal -> original (pytorch#3062)
Browse files Browse the repository at this point in the history
* Fix spelling mistake: orignal -> original

* Spelling fix: orignal -> original

Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com>
  • Loading branch information
2 people authored and vfdev-5 committed Dec 4, 2020
1 parent db66855 commit 9303c23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion torchvision/csrc/cpu/decoder/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions torchvision/io/_video_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9303c23

Please sign in to comment.