pass flv/rm/rmvb through to ffmpeg

This commit is contained in:
mappu 2016-12-05 19:48:04 +13:00
parent a778c530c2
commit 95da07dbb9
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ func (this *Thumbnailer) RenderFile(absPath string) ([]byte, error) {
func FiletypeSupported(ext string) bool { func FiletypeSupported(ext string) bool {
switch strings.ToLower(ext) { switch strings.ToLower(ext) {
case ".jpg", ".jpeg", ".png", ".gif", ".avi", ".mkv", ".mp4", ".ogm", ".wmv": case ".jpg", ".jpeg", ".png", ".gif", ".avi", ".mkv", ".mp4", ".ogm", ".wmv", ".flv", ".rm", ".rmvb":
return true return true
default: default:
return false return false
@ -94,7 +94,7 @@ func (this *Thumbnailer) RenderFile_NoCache(absPath string) ([]byte, error) {
return this.RenderScaledImage(src) return this.RenderScaledImage(src)
case ".avi", ".mkv", ".mp4", ".ogm", ".wmv": case ".avi", ".mkv", ".mp4", ".ogm", ".wmv", ".flv", ".rm", ".rmvb":
return this.RenderScaledFfmpeg(absPath) return this.RenderScaledFfmpeg(absPath)
default: default: