[graphics/krita/krita/6.0] libs/ui/animation: Don't handle audio in export for image formats

Carsten Hartenfels <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e59d313a938ddb781d1a9a4b7bbcf298b1c38f87 by Carsten Hartenfels.
Committed on 27/07/2026 at 17:19.
Pushed by hartenfels into branch 'krita/6.0'.

Don't handle audio in export for image formats

Because there's no point in putting work into inputting it into encoders
that don't support it.

M  +1    -1    libs/ui/animation/KisDlgAnimationRenderer.cpp

https://invent.kde.org/graphics/krita/-/commit/e59d313a938ddb781d1a9a4b7bbcf298b1c38f87

diff --git a/libs/ui/animation/KisDlgAnimationRenderer.cpp b/libs/ui/animation/KisDlgAnimationRenderer.cpp
index 366ceaf53b9..6f32e17e173 100644
--- a/libs/ui/animation/KisDlgAnimationRenderer.cpp
+++ b/libs/ui/animation/KisDlgAnimationRenderer.cpp
@@ -845,7 +845,7 @@ KisAnimationRenderingOptions KisDlgAnimationRenderer::getEncoderOptions() const
 
     options.shouldEncodeVideo = m_page->shouldExportOnlyVideo->isChecked();
     options.shouldDeleteSequence = !m_page->shouldExportOnlyImageSequence->isChecked();
-    options.includeAudio = m_page->chkIncludeAudio->isChecked();
+    options.includeAudio = supportsAudio(videoType) && m_page->chkIncludeAudio->isChecked();
     options.wantsOnlyUniqueFrameSequence = m_page->chkOnlyUniqueFrames->isChecked();
 
     options.frameRate = m_page->intFramesPerSecond->value();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.