diff --git a/rans64.h b/rans64.h index 9d2da45..f1142f3 100644 --- a/rans64.h +++ b/rans64.h @@ -261,7 +261,7 @@ static inline void Rans64DecSymbolInit(Rans64DecSymbol* s, uint32_t start, uint3 // See RansEncSymbolInit for a description of how this works. static inline void Rans64EncPutSymbol(Rans64State* r, uint32_t** pptr, Rans64EncSymbol const* sym, uint32_t scale_bits) { - Rans64Assert(sym->x_max != 0); // can't encode symbol with freq=0 + Rans64Assert(sym->freq != 0); // can't encode symbol with freq=0 // renormalize uint64_t x = *r; @@ -315,4 +315,4 @@ static inline void Rans64DecRenorm(Rans64State* r, uint32_t** pptr) *r = x; } -#endif // RANS64_HEADER \ No newline at end of file +#endif // RANS64_HEADER