Skip to content

Commit

Permalink
rans64: Fix incorrect assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
rygorous committed Feb 19, 2014
1 parent ecb7935 commit 2906afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rans64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -315,4 +315,4 @@ static inline void Rans64DecRenorm(Rans64State* r, uint32_t** pptr)
*r = x;
}

#endif // RANS64_HEADER
#endif // RANS64_HEADER

0 comments on commit 2906afe

Please sign in to comment.