diff options
author | 2024-07-21 13:42:51 +0100 | |
---|---|---|
committer | 2024-07-21 14:42:51 +0200 | |
commit | c635080a0bfc7efd8519adfa527b012115cb0208 (patch) | |
tree | e2754d5084ea07b3aa51aa57fa21945d3e28da8e /internal/media/ffmpeg.go | |
parent | [feature/frontend] Respect `prefers-reduced-motion` for avatars, headers, and... (diff) | |
download | gotosocial-c635080a0bfc7efd8519adfa527b012115cb0208.tar.xz |
[feature] add flac support (#3121)
* add flac support to the ffprobe format/stream -> filetype parser
* also add audio/flac for flac (not just x-flac)
* update tests
---------
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/media/ffmpeg.go')
-rw-r--r-- | internal/media/ffmpeg.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/media/ffmpeg.go b/internal/media/ffmpeg.go index 6d4c9ac87..ce90028af 100644 --- a/internal/media/ffmpeg.go +++ b/internal/media/ffmpeg.go @@ -335,6 +335,8 @@ func (res *result) GetFileType() (gtsmodel.FileType, string) { } case "avi": return gtsmodel.FileTypeVideo, "avi" + case "flac": + return gtsmodel.FileTypeAudio, "flac" } return gtsmodel.FileTypeUnknown, res.format } |