Fix CompareVideo problem with the error avg