]> git.sesse.net Git - kdenlive/commitdiff
Fix crash on audio analysis (temporary fix):
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 19 May 2012 10:53:27 +0000 (12:53 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 19 May 2012 10:54:09 +0000 (12:54 +0200)
http://kdenlive.org/mantis/view.php?id=2613

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);