[graphics/krita] 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 ef46ef6e647a70cb14e063699eeccda4d72daac8 by Carsten Hartenfels.
Committed on 27/07/2026 at 16:06.
Pushed by hartenfels into branch 'master'.

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/ef46ef6e647a70cb14e063699eeccda4d72daac8

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.