]> granicus.if.org Git - libvpx/commit
Replace the zero handling in extend_to_full_distribution.
authorAlex Converse <aconverse@google.com>
Thu, 8 Oct 2015 23:01:42 +0000 (16:01 -0700)
committerAlex Converse <aconverse@google.com>
Mon, 26 Oct 2015 18:29:46 +0000 (11:29 -0700)
commit7f56cb29787b187c8cb1b778918ca3b80184c804
tree780a14951fa300dd6ef2aca92664e06f1306e740
parent65dd056e413bbc42b99e9930d4914e22a0ec23cb
Replace the zero handling in extend_to_full_distribution.

The old workaround "p = 0 ? 0 : p -1" is misleading.

?: happens before =
assigning back to p truncates to one byte.

Therefore it is equivalent to (p - 1) & 0xFF, but the check just exists
to work around a first pass bug, so let's make the work around more
clear.

https://code.google.com/p/webm/issues/detail?id=1089

Change-Id: Ia6dcc8922e1acbac0eeca23a4d564a355c489572
vp10/common/entropy.c
vp10/common/entropy.h
vp9/common/vp9_entropy.c
vp9/common/vp9_entropy.h