]> granicus.if.org Git - libvpx/commit
vp8: remove assertion in tree coder.
authorJerome Jiang <jianj@google.com>
Wed, 13 Jun 2018 19:55:17 +0000 (12:55 -0700)
committerJerome Jiang <jianj@google.com>
Thu, 14 Jun 2018 00:03:01 +0000 (17:03 -0700)
commit343352b556f5f61833174c08a35d697d280933e3
tree504b44be8cf364f42241523ee0cf454f3fcdfa86
parent37a0283b18a12b60e28050ea05682e5a39f0ec9e
vp8: remove assertion in tree coder.

Cast the counter to uint64_t in case it overflows.

The assert was to prevent c[0] * Pfac being overflow beyong unsigned int
since Pfac could be 2^8. Thus c[0] needs to be smaller than 2^24.

In VP9, the assert was removed and c[0] was casted to uint64_t.

Bug: 805277
Change-Id: Ic46a3c5b4af2f267de4e32c1518b64e8d6e9d856
vp8/common/treecoder.c