From c148205d494f207b0a0cfeb882e78918124cc10b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sat, 19 May 2012 12:53:27 +0200 Subject: [PATCH] Fix crash on audio analysis (temporary fix): http://kdenlive.org/mantis/view.php?id=2613 --- src/renderer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer.cpp b/src/renderer.cpp index 3343bd52..0f457483 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -1707,8 +1707,9 @@ void Render::showAudio(Mlt::Frame& frame) return; } mlt_audio_format audio_format = mlt_audio_s16; - int freq = 0; - int num_channels = 0; + //FIXME: should not be hardcoded.. + int freq = 48000; + int num_channels = 2; int samples = 0; int16_t* data = (int16_t*)frame.get_audio(audio_format, freq, num_channels, samples); -- 2.39.2