tools/ffeval: Check return value of av_expr_parse_and_eval()

Fixes CID1026745

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/ffhash: close file handle on error

Fixes CID1026768

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>