diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-10-24 22:07:47 +0200 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-10-24 22:07:47 +0200 |
commit | 7e745ed7fc514751ad05b1976ccafac9c02cbf58 (patch) | |
tree | 8b0ad4bc11ad0fb13c9e4e640b033ec8dbff9f9d | |
parent | d2359550a18f24c93b2ed9a23d222280150d2de8 (diff) | |
download | atracdenc-7e745ed7fc514751ad05b1976ccafac9c02cbf58.tar.gz |
[AT3P] [Bugfix] Do not generate zero amplitude wave
-rw-r--r-- | src/atrac/at3p/at3p_gha.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atrac/at3p/at3p_gha.cpp b/src/atrac/at3p/at3p_gha.cpp index 1f1823e..c101b72 100644 --- a/src/atrac/at3p/at3p_gha.cpp +++ b/src/atrac/at3p/at3p_gha.cpp @@ -332,7 +332,8 @@ const TAt3PGhaData* TGhaProcessor::DoAnalize(TBufPtr b1, TBufPtr b2) bool TGhaProcessor::CheckNextFrame(const float* nextSrc, const vector<gha_info>& ghaInfos) const { - vector<TAt3PGhaData::TWaveParam> t(ghaInfos.size()); + vector<TAt3PGhaData::TWaveParam> t; + t.reserve(ghaInfos.size()); for (const auto& x : ghaInfos) { t.emplace_back(TAt3PGhaData::TWaveParam { |