Fix build on some compilers.
authorCarl Hetherington <cth@carlh.net>
Thu, 14 Mar 2013 15:50:28 +0000 (15:50 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 14 Mar 2013 15:50:28 +0000 (15:50 +0000)
src/lib/analyse_audio_job.cc

index 92c3cdd4e5a88709b94c285c91bc67b0659a2415..43eecbcbd774f66d4b84e70e714171aa86304aa2 100644 (file)
@@ -68,7 +68,7 @@ AnalyseAudioJob::run ()
        decoders.audio->Audio.connect (bind (&AnalyseAudioJob::audio, this, _1));
 
        int64_t total_audio_frames = video_frames_to_audio_frames (_film->length().get(), _film->audio_stream()->sample_rate(), _film->source_frame_rate());
-       _samples_per_point = max (1L, total_audio_frames / _num_points);
+       _samples_per_point = max (int64_t (1), total_audio_frames / _num_points);
 
        _current.resize (_film->audio_stream()->channels ());
        _analysis.reset (new AudioAnalysis (_film->audio_stream()->channels()));