]> git.sesse.net Git - kdenlive/blobdiff - src/renderer.cpp
Fix crash on audio analysis (temporary fix):
[kdenlive] / src / renderer.cpp
index 3343bd52a6c6e90014e9d7889e49c750ef4fc80d..0f457483ca8d78c9e8ef3fbb34701e28b5053079 100644 (file)
@@ -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);