X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fanalyse_audio_job.cc;h=bfbf33a9d8ffbd510ee95f5aed8b97f54dcad267;hp=fefb8bc16240cf0b80c9a5b4af35ffb7b91971cc;hb=b1dc9c3a2f7e55c9afc5bf2d5b465371b048e14f;hpb=2d5beb0d6794df13ad1df47e84fd7a57d1d1c64d diff --git a/src/lib/analyse_audio_job.cc b/src/lib/analyse_audio_job.cc index fefb8bc16..bfbf33a9d 100644 --- a/src/lib/analyse_audio_job.cc +++ b/src/lib/analyse_audio_job.cc @@ -1,19 +1,20 @@ /* Copyright (C) 2012-2015 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -168,7 +169,7 @@ AnalyseAudioJob::analyse (shared_ptr b) float s = data[i]; float as = fabsf (s); if (as < 10e-7) { - /* SafeStringStream can't serialise and recover inf or -inf, so prevent such + /* We may struggle to serialise and recover inf or -inf, so prevent such values by replacing with this (140dB down) */ s = as = 10e-7; }