diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-09-12 01:08:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-09-12 01:08:31 +0200 |
commit | c944b7b874ce2296b0c67cd9e7c670304c514e1f (patch) | |
tree | 1a13a4381f2bd3126cbd8a1b4161ad2d962b9d23 /src/FileAnalyzer.cpp | |
parent | ef4442c6f58929f2eefb10be218b8d3638d88358 (diff) |
Sneed moment
Diffstat (limited to 'src/FileAnalyzer.cpp')
-rw-r--r-- | src/FileAnalyzer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FileAnalyzer.cpp b/src/FileAnalyzer.cpp index f16c232..aeb88f7 100644 --- a/src/FileAnalyzer.cpp +++ b/src/FileAnalyzer.cpp @@ -82,9 +82,9 @@ namespace QuickMedia { case ContentType::AUDIO_MPEG: return "audio/mpeg"; case ContentType::AUDIO_MIDI: return "audio/midi"; case ContentType::AUDIO_WAVE: return "audio/wave"; - case ContentType::AUDIO_FLAC: return "audio/wave"; + case ContentType::AUDIO_FLAC: return "audio/flac"; case ContentType::AUDIO_VORBIS: return "audio/ogg"; - case ContentType::AUDIO_OPUS: return "audio/ogg"; + case ContentType::AUDIO_OPUS: return "audio/opus"; case ContentType::IMAGE_JPEG: return "image/jpeg"; case ContentType::IMAGE_PNG: return "image/png"; case ContentType::IMAGE_GIF: return "image/gif"; @@ -129,7 +129,7 @@ namespace QuickMedia { bool video_get_first_frame(const FileAnalyzer &file, const char *destination_path, int width, int height) { Path destination_path_tmp = destination_path; - destination_path_tmp.append(".tmp.jpg"); + destination_path_tmp.append(".tmp.jpg"); // TODO: .png, but the below code also needs to be changed for that const int middle_seconds = file.get_duration_seconds().value_or(0.0) / 2.0; char middle_seconds_str[32]; |