From c944b7b874ce2296b0c67cd9e7c670304c514e1f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 12 Sep 2022 01:08:31 +0200 Subject: Sneed moment --- src/FileAnalyzer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/FileAnalyzer.cpp') 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]; -- cgit v1.2.3