avcodec/wmaenc: Check input for finiteness