From 71e2e509ec7d7cddadaf7b3a8705bd44ee58b8e6 Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Tue, 18 Feb 2025 18:31:51 +0100 Subject: [PATCH] Fix #134708: Audio render does not change file extension Caused by case sensitive string comparison between RNA enum name and pre-defined array with extensions. The array with extensions was also missing ".aac" string. Pull Request: https://projects.blender.org/blender/blender/pulls/134761 --- source/blender/editors/sound/sound_ops.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/sound/sound_ops.cc b/source/blender/editors/sound/sound_ops.cc index ab2df09a04e..3251b9ca7a9 100644 --- a/source/blender/editors/sound/sound_ops.cc +++ b/source/blender/editors/sound/sound_ops.cc @@ -431,6 +431,7 @@ static const char *snd_ext_sound[] = { ".mp3", ".ogg", ".wav", + ".aac", nullptr, }; @@ -445,7 +446,7 @@ static bool sound_mixdown_check(bContext * /*C*/, wmOperator *op) if (item->value == container) { const char **ext = snd_ext_sound; while (*ext != nullptr) { - if (STREQ(*ext + 1, item->name)) { + if (STRCASEEQ(*ext + 1, item->name)) { extension = *ext; break; }