Perform lowercase video extension comparison when mapping to mime types

This commit is contained in:
Simon Repp
2025-11-11 17:38:59 +01:00
parent c6baa0a4df
commit fd5d0b3ec4
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -37,6 +37,7 @@ hatsch<br>
[Matthias Bilger](https://codeberg.org/m42e)<br>
[Meljoann](https://www.meljoann.com/)<br>
[Michael Fritzsch](https://codeberg.org/michael-fritzsch)<br>
[namatoj](https://autonomous.zone/@namatoj)<br>
[Robert Pfotenhauer](https://pftnhr.xyz)<br>
[Sam](https://ethicalrevolution.co.uk/)<br>
[Sam Muirhead](https://www.animate-activate.studio/)<br>
+1 -1
View File
@@ -72,7 +72,7 @@ impl VideoFile {
// This mapping must be kept up-to-date with
// [SUPPORTED_EXTENSIONS], otherwise it's a full on-crash somewhere
// (but at least something that is quickly and easily discovered).
match extension {
match extension.to_ascii_lowercase().as_str() {
"m4v" |
"mp4" => "video/mp4",
"mkv" => "video/x-matroska",