aboutsummaryrefslogtreecommitdiff
path: root/src/FileAnalyzer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileAnalyzer.cpp')
-rw-r--r--src/FileAnalyzer.cpp6
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];