diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-14 15:50:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-14 15:50:28 +0000 |
| commit | ffd67de21310dfaca4b379c2a9869ea6ce946fd6 (patch) | |
| tree | 313466adc5cd20f190c2551c1fbb058ffb5f7d94 /src/lib | |
| parent | ab13859cd30879e63f068ca8d27334e8a0bc44d8 (diff) | |
Fix build on some compilers.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/analyse_audio_job.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/analyse_audio_job.cc b/src/lib/analyse_audio_job.cc index 92c3cdd4e..43eecbcbd 100644 --- a/src/lib/analyse_audio_job.cc +++ b/src/lib/analyse_audio_job.cc @@ -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())); |
