Bug fix to avoid random crashes during ARNR filtering
authorRanjit Kumar Tulabandu <ranjit.tulabandu@ittiam.com>
Wed, 23 Nov 2016 13:16:44 +0000 (18:46 +0530)
committerYunqing Wang <yunqingwang@google.com>
Tue, 27 Dec 2016 19:20:08 +0000 (11:20 -0800)
commit7cf13826b7234e933d9aa4dac8ebddeab89ab4ac
treedfdbd269b1910eee62763ebf9fa16d4fcd007b7b
parent78a24171a63d7d43e2263543aa2d0435127645ee
Bug fix to avoid random crashes during ARNR filtering

The function 'vp9_find_best_sub_pixel_tree_pruned_more' is modified
to return INT_MAX for handling invalid MV cases from UINT32_MAX.

yunqingwang:
patch 3: rebased on top of the tree.
patch 4: The return type of vp9_find_best_sub_pixel_tree* was changed
to uint32_t to fix ubsan warnings. Changing UINT_MAX back to INT_MAX
was not quite right. Patch 4 modified vp9_temporal_filter.c to accept
uint32_t.
(Note: Inconsistency exists in vp9_find_best_sub_pixel_tree*, which
will be fixed in a separate CL.)

Change-Id: Ib1a79dc2aa41ea6335c21669c76883cdbb7e0535
vp9/encoder/vp9_temporal_filter.c