diff --git a/coding/arithmetic_codec.cpp b/coding/arithmetic_codec.cpp index 1054f1450b..d179540b9e 100644 --- a/coding/arithmetic_codec.cpp +++ b/coding/arithmetic_codec.cpp @@ -38,12 +38,7 @@ vector FreqsToDistrTable(vector const & origFreqs) break; } } - if (!hasDegradedZeroInterval) { - // Convert distr_table to 32-bit vector, although currently only 17 bits are used. - vector distr_table; - for (uint32_t i = 0; i < result.size(); ++i) distr_table.push_back(result[i]); - return distr_table; - } + if (!hasDegradedZeroInterval) return vector(result.begin(), result.end()); ++freqLowerBound; } }