vp8cx : bestsad declared and initialized incorrectly.

bestsad should be an int initialized to INT_MAX.  The optimized
SAD function expects a signed value for bestsad to use for comparison
and early loop termination.  When no match is made, which is
determined by a comparison of bestsad to INT_MAX, INT_MAX is returned.
This commit is contained in:
Fritz Koenig 2010-06-24 12:18:23 -04:00
parent d1920de22c
commit cecdd73db7

View File

@ -997,7 +997,7 @@ int vp8_diamond_search_sadx4
int tot_steps;
MV this_mv;
unsigned int bestsad = UINT_MAX;
int bestsad = INT_MAX;
int best_site = 0;
int last_site = 0;