avutil/ripemd: adjust loop condition to silence CID1035716

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