From 2906afee001b616ad70957fbdb3fd7060681d09e Mon Sep 17 00:00:00 2001 From: Fabian Giesen Date: Tue, 18 Feb 2014 22:03:32 -0800 Subject: [PATCH] rans64: Fix incorrect assertion. --- rans64.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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