You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: video.go
    path of file: ./repos/photoprism/internal/thumb
    
    the code of the file until where you have to start completion: package thumb

// VideoSizes contains all valid video output sizes sorted by size.
var VideoSizes = SizeList{
	Sizes[Fit7680],
	Sizes[Fit4096],
	Sizes[Fit3840],
	Sizes[Fit2560],
	Sizes[Fit2048],
	Siz
    
func VideoSize(limit int) Size {
	if limit < 0 {
		// Return maximum size.
		return Sizes[Fit7680]
	} else if limit == 0 {
		// Return default size.
		return Sizes[Fit3840]
	} else if limit <= 720 {
		// Return minimum size.
		return Sizes[Fit720]
	}

	// Find match.
	for _, t := range VideoSizes {
		if t.Width <= limit {
			return t
		}
	}

	// Return maximum size.
	return Sizes[Fit7680]
}