]> granicus.if.org Git - libvpx/commit
Safe guard zero median filter outcome case
authorJingning Han <jingning@google.com>
Wed, 13 Mar 2019 19:06:39 +0000 (12:06 -0700)
committerJingning Han <jingning@google.com>
Wed, 13 Mar 2019 19:11:04 +0000 (12:11 -0700)
commite2435ff1f85679d8d67e1f9bb62835fdb948cbeb
tree00a5520be128ffa7e917df70589d84a7881fd37c
parent1c07e79ef18efbab652b9296af67503885606663
Safe guard zero median filter outcome case

In case median filter returns 0 value, bypass the Wiener filter
stage. This avoids potential divided by 0 case.

In the same place use a temp variable to take the Wiener filter
output instead of returning to the coeff array.

Change-Id: I45f57c515b4062a0aa1f312eda852462cb655d8e
vp9/encoder/vp9_encoder.c