From: Jean-Baptiste Mardelle Date: Sat, 19 May 2012 10:53:27 +0000 (+0200) Subject: Fix crash on audio analysis (temporary fix): X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c148205d494f207b0a0cfeb882e78918124cc10b;p=kdenlive Fix crash on audio analysis (temporary fix): http://kdenlive.org/mantis/view.php?id=2613 --- 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);